[Gambas-user] New internal highlighting design

Benoît Minisini g4mba5 at gmail.com
Fri Nov 5 17:10:07 CET 2021


Hi,

In the last commit, I have redesigned how highlighting works, so that 
it's possible to have more highlighting styles, that can be shared by 
the highlighters, or specific to some.

And so that the code is better too. A theme is now defined by a 
TextHighlighterTheme, whose styles are accessed by names.

You should never see the internal integer constants, except if you 
implement a new highlighter directly in the 'gb.eval.highlight' component.

Tell me if you have any problem with that.

The current pre-defined IDE themes were left mostly untouched, and most 
of the new styles have their default values whatever the theme.

By the way, if you have defined your specific highlighting colors, and 
if you think it could be a new editor theme, don't hesitate to send it me.

Regards,

-- 
Benoît Minisini


More information about the User mailing list