You need to add SynEditMarkupHighAll to the "uses" clause of your unit.
uses SynEditMarkupHighAll;
If you use Lazvarus 0.9.31 fixes, there is something called an "Identifier Dictionary", where you can enter the class (or any identifier) and it will add the unit for you.
Then add a "OnCreate" event to your form (the one with the synedit)
procedure TForm1.FormCreate(Sender: TObject);
var
SynMarkup: TSynEditMarkupHighlightAllCaret;
begin
SynMarkup := TSynEditMarkupHighlightAllCaret(SynEdit1.MarkupByClass[TSynEditMarkupHighlightAllCaret]);
SynMarkup.MarkupInfo.FrameColor := clSilver;
SynMarkup.MarkupInfo.Background := clGray;
SynMarkup.WaitTime := 100; // millisec
SynMarkup.Trim := True; // no spaces, if using selection
SynMarkup.FullWord := True; // only full words If "Foo" is under caret, do not mark it in "FooBar"
SynMarkup.IgnoreKeywords := False;
end;
You can set whatever color, or bold or ...
--
One day that will be added to the visual designer. But for now