Robin
Robin

Reputation: 517

Resharper like syntax highlighting

I've used resharper for a while now and i notice that it sometimes adds advise to your code such as this:

enter image description here

I'm writing a visual studio add-in where i'd like to do the same thing. Could anyone point me in the right direction?

Upvotes: 2

Views: 825

Answers (1)

asgerhallas
asgerhallas

Reputation: 17714

Hadi Hariri has written some good introductions to extend Resharper either with plugins:

http://hadihariri.com/2010/01/12/writing-plug-ins-for-resharper-part-1-of-undefined/

http://hadihariri.com/2010/07/20/writing-plug-ins-for-resharper-part-2-of-n/

... or with a new custom pattern matching feature in Resharper 5.

http://hadihariri.com/2010/08/19/highlighting-custom-patterns-with-resharper/

For getting started with writing the plugin Hadi describes, reference the following dll's from the Resharper install directory:

references for creating the plugin

And for getting further checkout the source Resharper PowerToys:

http://resharperpowertoys.codeplex.com/

Mind that there are some differences in how to implement the plugins between Resharper versions.

Upvotes: 1

Related Questions