Forum > General
Synedit Colors...
(1/1)
mmab:
Hi,
I tried to change the folding color frame color (usually red framed), and the changed code color (which is usually yellow) of the pascal highlighter. But couldn't do it.
the attributes of the highlighter doesn't have this option
--- Code: ---for i := 0 to synedit1.Highlighter.AttrCount - 1 do
begin
memo1.Lines.Add(format('%d-%d-%d-%d',[i,synedit1.Highlighter.Attribute[i].Background,synedit1.Highlighter.Attribute[i].Foreground,synedit1.Highlighter.Attribute[i].FrameColor]));
end;
--- End code ---
Any ideas?
thanks
Martin_fr:
It's not part of the highlighter.
--- Code: ---with SynEdit1.FoldedCodeColor do begin
Background :=
Foreground :=
FrameColor :=
--- End code ---
mmab:
Thank you Martin.
I've found it before your posting. The folded color is OK.
But how about the red frame color which appears whenever you click on one of the keywords such as " for .... end" or "if ... end"?
I guess it's not a part of synedit.
Thanks..
Martin_fr:
it's a bt more complex
property MarkupByClass[Index: TSynEditMarkupClass]: TSynEditMarkup
read GetMarkupByClass;
without testing (it should always be assigned)
--- Code: ---if assigned(synEdit1.MarkupByClass[TSynEditMarkupWordGroup]) then
TSynEditMarkupWordGroup(synEdit1.MarkupByClass[TSynEditMarkupWordGroup]).MarkupInfo.FrameColor :=
--- End code ---
you don't actually need the typecast in this case
Navigation
[0] Message Index