menu to lexer_editor.exe

hycmos
Posts: 86
Joined: 06.11.2019 02:17

menu to lexer_editor.exe

Post by hycmos »

Sir,
I download the "lexer_editor.exe", and put it to folder of CudaText.
But I can not find any menu to run it.

my question is:
1) if I use plugin "ext-tools" to run it, can it modify the lexer?
2) when finish 1), any other actions is needed to make the modified lexer work?

thanks for this wonderful Cuda.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I don't use lexer_editor so I don't recall how to use it (maybe REadme tells it). I suggest to use Wiki method with SynWrite.
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

OK.
Thanks.
I try to explorer it.

BTW, I downloaded this file from sf.net:
https://sourceforge.net/projects/cudate ... r_program/
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

It is on my SF, but it was never used in real action (making of real lexers was always in SynWrite).
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

Sir,
I tested this "lexer_editor.exe".
It works well with CudaText.
Now I need not the installation of SynWrite.

Below is my steps: When plan to edit one lexer,
First of all, Close the CudaText;
And then, double click this "lexer_editor.exe";
Now every lexer can be editted.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Good that it was tested by you. (Maybe its not needed to close Cud, your can restart it later after lexer is done.)
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

one error meesage box will appear if I dont close Cuda.
=====================================
windows title:lexer_editor
message:Unable to write to F:\Program Files\cudatext\data\lexlib\test.cuda-lexmap
=====================================
I donot know how to fix it. So I close Cuda before edit the lexer.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I see it, it will be fixed with next Cud 1.89.5.
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Post by hycmos »

update to 1.89.5.
the error message disappears.

now I can add this to 'Tools' to run it.
It works.

Cuda still needs to restart to let the modified lexer work. I think it is OK.
I like it.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

1.89.5.2 has major fix: changed logic of file-watcher-and-reloader, it was freezing Cud sometimes. Maybe you can test it with files which are updating in external programs.
Post Reply