Your custom filetype need to define a Scintilla lexer to be used.
Scintilla is the editing component we use in Geany and primarily responsible 
for syntax highlighting. Choose any of the existing filetypes to use.

Then you can either define the styling section or just inherit all styles from 
another filetype.

Example:
```ini
[styling=C]
default=0ff0000;0x222222;false;false

[settings]
lexer_filetype=C
```

(I stripped all unchanged lines for readability)

Alternatively, you could write your own Scintilla lexer for maximum flexibility 
in styling but this way more complicated.

A note on the keywords section:
you cannot add arbitrary keyword keys into the section. The possible keys 
depend on the Scintilla lexer used. Check the corresponding filetype 
configuration file for the base filetype you choose.

In general, if you didn't have done, have a look at the documentation about 
custom filetypes at https://geany.org/manual/#custom-filetypes.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/4292#discussioncomment-12954695
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/repo-discussions/4292/comments/12954...@github.com>

Reply via email to