[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3249: Some higlighting is missing "Normal" state


http://gambaswiki.org/bugtracker/edit?object=BUG.3249&from=L21haW4-

Comment #3 by Bruce STEERS:

So the following highlighters are missing Normal in the States array...

c cplusplus css javascript json sh sql

All the others have it.

My theme editor uses the States property to list the settable states of the highlighters.
I had to add code to ensure Normal existed and was settable.

It just seemed like a bug to me that Normal only existed in some highlighters States property when i realised every highlighter seemed to use Normal for the line numbers by default so i needed to change it.
So it seemed essential for it to always be listed as a State.

Personally I think the States property should **always** have Background and Normal State that reflect the editor Background and Foreground colour.

But I have worked around it myself so i do not require a fix.
I leave it up to you to decide if States should always list Normal :)
With respects



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----