BTW, which version of Lazarus do you have?
I am asking because:
1) You seem to have a pretty up-to-date version, the patch applied flawlessly => and it didn't even have context.
2) it removed ComCtrl from uses, which meant it didn't compile (and comctrls must have been there for a while (afaik)
Anyway, applied, fixed, compiled => works => css highlights flawlessly
Well that is, as soon as you actually set any colors.
The highlighters own default are bold for keywords, and italic for comments, and that's it.
But for some reason, they are rest => so you need to edit them yourself.
in the IDE directory are 5 (for each scheme) xml files containing hte settings for the highlighters => they need to be compiled into resources... (good question, I managed to get fpc to do it for me, by adding the correct $I => but in SVN are only the pre-compiled resources, as not everyone has windres, or whatever...
Sorry, a long time since I looked at resource
I am not sure, why in the absence of config it does not keep the current settings...
seems there simply is no check => it loops through all highlighters and initializes them...
function ColorSchemeFactory: TColorSchemeFactory;
calls
procedure TColorSchemeFactory.RegisterScheme(aXMLConfig: TRttiXMLConfig; AName,
which calls
constructor TColorScheme.CreateFromXml(aXMLConfig: TRttiXMLConfig; const AName,
and that does
for i := low(TLazSyntaxHighlighter) to high(TLazSyntaxHighlighter) do
same in
TColorScheme.LoadFromXml
problem is that code is also used to load userschemes, and some of the code must be executed, even if there is nothing in the XML....