this post was submitted on 07 Aug 2023
16 points (100.0% liked)

Text Editors

466 readers
1 users here now

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

Basically just the title said. The situation is basically I use a Domain-Specific Language called G'MIC, and to this day, I haven't found a satisfactory answer to the issue of lack of syntax highlighting. At the moment, I am using KDE Kate as it's pretty good at structuring the code with their find/replace feature, tab indicators, and multi-window support.

you are viewing a single comment's thread
view the rest of the comments
[–] TheCee@programming.dev 1 points 1 year ago (1 children)
[–] Reptorian@programming.dev 2 points 1 year ago (1 children)

What do you mean? I'm pretty new to making syntax highlighting for KDE Kate, so I'm just now fixing my other thing before I get into much more advanced concept of it.

[–] TheCee@programming.dev 1 points 1 year ago (1 children)

The way I remember stuff and it seems to be explained in here a context is a way to limit the amount of checked regexes. So as I understand you can start an expr context if you hit one of those keywords. Kind of like modes in XSL or working with a stack.

That document also describes how to handle newlines in context.