This project is read-only.

How to highlight particular line

Topics: Developer Forum
Oct 15, 2013 at 7:36 AM
I want something like debugging in application. How can I highlight particular line.
Oct 24, 2013 at 12:23 AM
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;
scintilla.Lines[1].AddMarker(lineHighlighter);

(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:

Image