Daniel
Daniel

Reputation: 153

What is a viable method of spacing out text in visual studio

We are attempting to expand text in Visual Studio. Our current attempt consists of creating transparent intraline adornments at certain points in the text.

We have just stumbled upon a disadvantage to this method. Namely that when the given text has a background classification attached to it, the classification breaks and the result looks like this:

bug

We are currently researching possible ways of solving this by:

  1. Inspecting the current classification of the text and drawing a colored intraline adornment.
  2. Drawing the background manually, by drawing in an adornment layer below the text.

However, both of these solutions seem very hacky.
What would be the best way of going about solving this problem?

Upvotes: 7

Views: 189

Answers (1)

Noah Richards
Noah Richards

Reputation: 6867

You're asking how to hack around a standing limitation in the editor, so there isn't a great way :-/

My background color fix extension does what you're suggesting in #2, so you could start from there. I haven't tested it since VS2010 or so, so it may fail in interesting and exciting ways.

Upvotes: 4

Related Questions