Page 1 of 1

[RESOLVED] Edit Lexer Styles: Option "ui_lexer_themes" is on, so styles...

Posted: 04.10.2025 08:21
by u202-10-03
Hi - I am trying to edit the SQL lexer.

However - when I go to Options > Lexers > Lexer properties > Styles tab

All options are read-only, and at the bottom of the window it states:
Option "ui_lexer_themes" is on, so styles are used from current syntax-them, not from this dialog.
The Wiki:
https://wiki.freepascal.org/CudaText#Le ... d_creation

States:

You can modify/create lexers. But not in CudaText. Install SynWrite (Windows program, which can be run under Wine on Linux). There, you have lexer editor dialog.

Howevr, the SynWrite page states:
SynWrite is superceded by CudaText.
How can I edit the styles for a Lexer?

Thanks

Re: Edit Lexer Styles: Option "ui_lexer_themes" is on, so styles are used from current syntax-them, not from this dialog

Posted: 04.10.2025 08:32
by main Alexey
If "ui_lexer_themes" is On, you don't need to edit styles IN LEXER, instead edit them in the app's theme (syntax theme).
Options -> Themes -> Settings - theme - syntax.

If "ui_lexer_themes" is Off, that GUI dialog
Options > Lexers > Lexer properties > Styles tab
will allow to edit lexer styles.

Re: Edit Lexer Styles: Option "ui_lexer_themes" is on, so styles are used from current syntax-them, not from this dialog

Posted: 04.10.2025 08:38
by u202-10-03
Thank you again for your quick reply. Issue resolved!