b w
b w

Reputation: 4663

Add syntax coloring for new filetype in Visual Studio 6?

Is it possible to change the syntax coloring for a new file type (let's call it .XYZ files) in Visual Studio (VC++) 6, and if so, how?

I see where you can edit the color for comments, numbers, operators, etc. in Tools/Options/Format, but it seems to apply only to known filetypes like .C, .H, .CPP, .HPP, etc.

In this particular case, XYZ are really C++ under the covers, so i really just need to be able to apply C++ formatting rules to .XYZ.

Upvotes: 0

Views: 974

Answers (1)

Vince
Vince

Reputation: 11

Have a look at the registry under:

HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Text Editor\Tabs/Language Settings\C/C++] "FileExtensions"="cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2"

and just add your extension to the end. Close VC6 first though.

Upvotes: 1

Related Questions