How to highlight particular line

Topics: Developer Forum
Oct 15, 2013 at 6:36 AM
I want something like debugging in application. How can I highlight particular line.
Oct 23, 2013 at 11:23 PM
You can use markers to do this. Here is an example:

Marker lineHighlighter = scintilla.Markers[2];
lineHighlighter.BackColor = System.Drawing.Color.Yellow;
lineHighlighter.Symbol = MarkerSymbol.Background;

(2 is just the number I used for my highlight marker since I already used 1 for breakpoints)

Here is a screenshot of how the line highlighter looks in my ScintillaNET-based IDE: