I am writing a Visual Studio 2010 extension that uses the IVsTextView to edit acustom content type. I'm using MEF extensions (I wish to avoid writing an implementation for ILanguageService).
I defined 3 classifiers and appropriate ClassificationFormatDefintions, which provide the color and font for the tags.
However, the text also contains 'unclassified' content. I was not able to change its color nor its font.
- I tried changing the 'Plain Text' item in the "Text Editor" category, but it did not have any effect.
- I tried applying properties on the IEditorFormatMap interface, but the properties I tried did not have an effect. I'm not even sure they were correct properties.
I also thought about (though did not try) adding an 'unclassified' classifier and provide the appropriate tagger info for it. But this seems like the wrong way to do it.
So, how do I set the font for the unclassified content?
Alternatively, how do I relate the IVsTextView to the items in "Text Editor" font and colors category?