[Gambas-user] Question about highlight.styles[] list from original eval.highlight class

Bruce Steers bsteers4 at gmail.com
Sun Dec 10 20:17:19 CET 2023


I think TextHighlighterTheme.Colors is the new way..

Print TextHighlighterTheme.Colors.Join(";")
*Selection;Highlight;Added;Removed;Error;Comment;Documentation;Keyword;Function;Operator;Symbol;Number;String;Current;Datatype;Preprocessor;Escape;Label;Constant*
Respects
BruceS


On Sun, 10 Dec 2023 at 18:02, Brian G <brian at westwoodsvcs.com> wrote:

> I have a number of programs that analyze the source code, and produce
> output, they use this to identify the types of elements found
>
> and print in human readable names.   They no longer work!
>
> Is there a reason it was removed?
> On 12/10/23 05:06, Bruce Steers wrote:
>
> Do you mean the TextEditor.Styles property?
>
> If yes that changed to a hidden method  TextEditor._GetStyles()
>
> Respects
> BruceS
>
>
> On Sun, 10 Dec 2023 at 05:40, brian <brian at westwoodsvcs.com> wrote:
>
>> There was a styles string[] array that contained the text names that
>> matched all possible values provided by the types array created by the
>> analyze () call
>> This allowed the Integer values in the types array to be mapped to a text
>> name of the type.
>>
>> ~~~~~ Brian
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> --
> ~~~~ Brian
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231210/e54872f0/attachment-0001.htm>


More information about the User mailing list