Hey Martin.
Let's see if I can explain my self a little better:
I have a custom highlighter. It works, keywords are green, identifiers are white, and so on. Not a problem there.
But now I'd like to mark errors on the code. So I wrote a syntax checking code. No problem there neither. The HL does its thing and feeds the syntax checker and it works just fine.
Now, how do I mark code to indicate an error? You know, like a red underline. For what I can gather on the Internet I need to use a TSynEditMarkupHighlightAll object to do that.
Again, no problem there, I have my Markup object all set up, I assign it the text I want marked and it marks it.
BUT, it only works when the text that I want marked is in one single line. If the text extends over more than one line, then I don't know what to do.
So this will be marked with a red underline:
thisvar := 44 + ;
But what to do if in this situation?
thisvar := 33 +
+ 32;
Where I would like to mark "33 + enter + +32;" because you have two "+".