Groups | Blog | Home
all groups > visual studio .net ide > october 2005 >

visual studio .net ide : syntax highlighting for .net addin


michaelpryor NO[at]SPAM gmail.com
10/24/2005 5:43:48 PM
I'm looking for code samples on .NET addins that change the display of
the code.

For example, something that shows how you could change the syntax
coloring on the fly (change all the words that say "foo" to be red) or
draw a wavy underline under certain words (spell checker for example)
and clicking on the word would fire an event so you could dropdown a
listbox, or hovering over the word would fire an event so you could
display a custom tooltip.

I've searched for these interfaces at
http://msdn.microsoft.com/vstudio/using/building/addin/default.aspx
but the only event I can find is the LineChanged event, which doesn't
help much.

It seems like there must be some way to hook into the drawing code
because AddIn's like ReSharper do this now:
http://www.jetbrains.com/resharper/ and that is exactly the same sort
of thing I'm trying to do.

-Michael
Maxim Mossienko
10/25/2005 10:01:16 AM
You could create standard markers or create custom ones, latter
described http://blogs.msdn.com/dr._ex/archive/2004/06/09/152220.aspx

[quoted text, click to view]
AddThis Social Bookmark Button