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

Post Reply
u202-10-03
Posts: 5
Joined: 03.10.2025 19:46

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

Post 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
Last edited by u202-10-03 on 04.10.2025 08:38, edited 1 time in total.
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

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

Post 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.
u202-10-03
Posts: 5
Joined: 03.10.2025 19:46

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

Post by u202-10-03 »

Thank you again for your quick reply. Issue resolved!
Post Reply