Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Marking the entire line using Visual Studio Editor Extension Points

$
0
0

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...)


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>