Page 1 of 2

menu to lexer_editor.exe

Posted: 10.11.2019 15:09
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.

Posted: 11.11.2019 10:31
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.

Posted: 11.11.2019 18:40
by hycmos
OK.
Thanks.
I try to explorer it.

BTW, I downloaded this file from sf.net:
https://sourceforge.net/projects/cudate ... r_program/

Posted: 11.11.2019 19:48
by Alexey
It is on my SF, but it was never used in real action (making of real lexers was always in SynWrite).

Posted: 13.11.2019 05:22
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.

Posted: 13.11.2019 21:08
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.)

Posted: 14.11.2019 05:23
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.

Posted: 14.11.2019 11:00
by Alexey
I see it, it will be fixed with next Cud 1.89.5.

Posted: 16.11.2019 17:40
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.

Posted: 16.11.2019 18:35
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.