Highlighting user syntax in Visual Studio 2010 in an html file

Is it possible to create syntax highlighting for user defined words in a known file type?

For example, I want the VS text editor to color the tags <@and the @>specified color when viewing in an html file.

Can you do this, and if so, how is this possible?

+3
source share
1 answer

Yes, of course, this is possible for C ++ files and files that Visual Studio recognizes; therefore, if VS is configured to recognize your HTML as a C ++ file, you should be fine.

You will need to create a usertype.dat file and put it in your

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

(or equivalent for VS2010, this is for VS2008)

, ;

; Qt, usertype.dat:

signal
slots
Q_OBJECT

( ..)

VS, .

.

+4

All Articles