views:

480

answers:

2

I would like to have Visual Studio highlight the names of my own classes in the text editor.

I have selected a color under User Types in Options > Fonts & Colors -- but strangely, this only works for Visual C# but not Visual C++.

Any ideas what's going on?

EDIT: I received some great tips regarding 3rd party tools in response to my previous question, but no answer as to why Visual Studio wouldn't provide this capability, or how to properly set it up.

+1  A: 

I gather that the answer is that Visual Studio simply doesn't provide syntax highlighting for C++. Pity.

Jen
yes it does and its doing so every since i started using it in 1996
yigal
A: 

Have you looked at Tools > Options > Environment > Fonts and Colors?

There's the following "Display items:"

User Keywords
User Types
User Types (Delegates)
User Types (Enums)
User Types (Interfaces)
User Types (Value Types)

This MSDN page details how to define the keywords. Basically create a file called usertype.dat with each keyword on a separate line, place it in the same directory as devenv.exe then restart Visual Studio.

Disclaimer: I haven't tried this in the latest versions of Visual Studio myself.

ChrisF