plugins - Custom syntax highlighting for VS 2008 -


I recently planned the color scheme VS Has been used and wanted to make changes so it was highlighted in the name of the method for a class with a different color. VS for this There is no alternative in.

Resharper offers custom syntax highlighting. I was wondering how difficult it is to write a little plugin that gives you granular custom syntax highlighting? Do you see any open-source ad-in-the-way?

Edit

Thanks, I managed to hack stuff using DXCore and my VS Oh, so looks like textmate

** Note **

I had to modify the snippet slightly by Rory, In the name of the dotted name and the similitude works with the operator.

I am now using:

  string name = EA LanguageElement.Name. Split ('.') Last (); If (name == ("op_Equality")) {name = "=="; } And if (name == "op_Innequality") {name = "! ="; } Ea.PaintArgs.OverlayText (name, ea.LanguageElement.NameRange.Start, Color.FromArgb (255204,0));  

Good as Brian has already said ... do you have some ideas Can be done with the get.

Apart from this there are also some other "decorative plugins" on our "" and we have a specific community

If you have any specific questions in the forum.

> It is the structure on which it has been created and which should give you an idea about it

There is a graphical capability that they are capable of.

He said that you do not need any of these tools to use

(so much) everything

To get you to know about simple things ... the following code is yours to add to the basics for a basic plugin template and run using the ...

  Personal Sub-PlugIn_EditorPaintLanguageElement (ByVal EA DevExpress.CodeRush.Core.EditorPaintLanguageElementEventArgs) Handle Me.EditorPaintLanguageElement then ea.LanguageElement.ElementType = LanguageElementType.Method then ea.PaintArgs.Over LayText (ea.LanguageElement.Name, _ ea.LanguageElement.NameRange.Start, _Color.HotPink) End then End Sub  

I have created this plugin based on this code (called CR_ColorizeMemberNames Is called) and added to it

The binary is available from my site.

You only need to download and install and keep the plugins in folder (for C: Program Files \ Developer Express Inc. \ DXCore for Visual Studio .NET \ 2.0 \ Bin \ Plugins ) .. Then start VS and the name of your method should all be in the hotpink (Lovely)


Comments