before going into detail
SynMultiSyn is for cases where you have in your text
tag1 text highlighted by highlighter 1 ONLY endtag1
tag2 text highlighted by highlighter 2 ONLY endtag2
Each portion of text is done by just one highlighter (eg html, css, js)
You want to use TSynAnySyn
SO I assume your text will be all pascal, and you want additional words highlighted, but with the pas highlight continuing.
Look at unit SynEditMarkupHighAll
class TSynEditMarkupHighlightAll
or class TSynEditMarkupHighlightAllMulti
It is not avail in the designer, you must add by code.
x := TSynEditMarkupHighlightAll.create;
synedit.markupmanager.add(x);
no need to free, it is freed with synedit.
i := TSynEditMarkupHighlightAllMulti.AddSeachTerm
TSynEditMarkupHighlightAllMulti.Terms
.MatchWordBounds
and similar
for differnt colors, use multiple instances.