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

Text Editors

457 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
[โ€“] Reptorian 2 points 1 year ago* (last edited 1 year ago) (1 children)

So far, the most challenging part was highlighting things that counts as comment rather than pointers to image pixels or accessible variables. That's not the end of my trouble though.

I do want to figure out how to highlight "expr" including newlines inside expr. expr is basically any mathematical expression that is utilized on JIT compilation.

  • if expr
  • repeat expr
  • variable={expr}
  • variable:=expr <- : can be replaced with operator and it will still apply.
  • eval expr
  • eval "expr"
  • check "expr"
  • fill expr
  • fill "expr"
  • eval>expr
  • eval >"expr"
  • fill >expr
  • fill >"expr"
  • {expr}
  • for expr
  • {"expr"}
  • while expr

Along with that to set up regex inside it to highlight section of expr.

While still maintaining priority of regex. So, if one regex is more important, it'll overwrite whatever highlighted.