[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Highlight.Analize and other things
[Thread Prev] | [Thread Next]
- Subject: Re: Highlight.Analize and other things
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Thu, 12 Nov 2026 18:16:22 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 10/11/2026 à 20:29, Bruce Steers a écrit :
IS the Highlight.Analize method and things like TextEditor.GetHighlight geared to work with the new gb.highlight system?I wonder as all uses of it i see compare types to gb.eval Highlight constants like Higlight.String, Highlight.Comment, etc but the new system expands the types to include others. for example a bash shebang line. (of which the is no constant)Am I able to use Highlight.class on other highlighters other than gambas?The wiki says it's for gambas code but it might just need updating since gb.highlight changes.Or is there some other function from gb.highlight that mirrors gb.eval Highlight.class functions for other highlighters to analize code?Respects BruceS
'Highlight.Analyze()' is for parsing Gambas code, and it uses 'Highlight' constants.
The 'gb.highlight' component has a custom 'TextHighlighter_Gambas' class that uses 'Highlight.Analyze()', and that transforms the 'Highlight' constants into highlighter states.
What's the problem with that? -- Benoît Minisini.
| Re: Highlight.Analize and other things | Bruce Steers <bsteers4@xxxxxxxxx> |
| Highlight.Analize and other things | Bruce Steers <bsteers4@xxxxxxxxx> |