[Gambas-user] New internal highlighting design

Bruce Steers bsteers4 at gmail.com
Fri Nov 12 13:25:34 CET 2021


On Fri, 5 Nov 2021 at 16:11, Benoît Minisini <g4mba5 at gmail.com> wrote:

> 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,
>

It seems to have broken my ScriptEd proggy.

not getting any highlighting of text now, only background colour is changing
https://gitlab.com/bsteers4/scripted/-/tree/new-gambas

this version (the version that is broken) Is for new-gambas and uses gambas
built in texteditor/gb.eval.highlight (not imported into source).

Respects
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211112/865de1c4/attachment.htm>


More information about the User mailing list