Dear ALL,
I am using the (really superb!) TSynFacilSyn component for custom syntax highlighting and have stumbled upon a problem when attemping to read the keyword colors from a Inifile.
To read the color value (or use a default color in case there is no color value saved into the Inifile), I have the line:
KeywordColor := IniFile.ReadInteger('Colors', 'Keywords', clRed);
Then I attribute the value read from the inifile to the highlighter (obviously it has been already declared):
Hlt.tkKeyword.Foreground := KeywordColor;
Finally, I force a redraw of the TSynEdit control to which the highlighter has been assigned:
SynEdit1.Invalidate;
But none of the above works. The keywords kept appearing in the default color (green), even if they are correctly saved to and read from the inifile as red (color value 255).
Can someone help me?
Thanks in advance!