I would like to mark an entire line on the editor according to some logic in my VSPackage.
So I exported IClassifierProvider
and EditorFormatDefinition
and
succeeded marking the relevant line by setting BackgroundColor
on ClassificationFormatDefinition
.
However, the problem is that the line is not "entirely" marked, only the text and whitespace are marked. When there are tabs on the beginning of the line, the mark is "intermittent" between them. Also, the mark does not span after end-of-line.
I would prefer the marker to start at the left edge of the editor window and extend until the right edge of the editor window, no matter how long the text line is.
Perhaps Classification Formats are not the best solution here. But what is the alternative?
(preferred a simple one. I guess I could get the window handle and draw the marker myself...)