[Gambas-user] Need help with TextEditor
g4mba5 at gmail.com
Wed Sep 15 20:06:29 CEST 2021
Le 15/09/2021 à 12:31, Bruce Steers a écrit :
> You need to study the gb.eval.highlight component.
> You can see how it's used in gambas syntax highlighting by studying the
> TextEditorMode_Style classes in the gb.form.editor component
> I made the TextEditorMode_Sh.class and it was a real head scratcher.
Yes, and it misses some shell syntaxes. :-)
I'd like to make a parser generator in Gambas, where you define the
syntax highlighting in a declarative way, and it compiles it into
Writing highlighters would be simpler then.
More information about the User