How to make VS 2005 Express highlight non-CPP files?

Started by
2 comments, last by Zajoman 15 years, 9 months ago
Can you make VS C++ 2005 Express code-highlight files with an extension other than *.cpp?
Advertisement
How is it that you find things you're looking for yourself just after asking for help? I found it. :)
Modify this would probably work well. Unfortunately you have to login to the board to get the file...Therefore, since I was curious too, I have downloaded the files.

Create a new .reg file, and add the following
Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\xx\Languages\File Extensions\.yyy]@="{B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}"

where xx is the version of your visual studio and yyy is your extension.
This maps to the C/C++ highlighting.

Then if it isn't present, creat a usertype.dat file in your VS install. Mine is:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
Then in this .dat file add your custom keywords.

And voila!
Thank you.

This topic is closed to new replies.

Advertisement