How to color shader code under VS7?

Started by
3 comments, last by Prozak 20 years, 1 month ago
Hi all, I''m working with nVidia''s Cg for shader code. The CD had some stuff to enable coloring of keywords when editing shader scripts in Visual Studio 6''s environment, but I''m working under VS 7... Any way to color it under 7? Salsa cooked it, your eyes eat it![Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
Prozak - The GameDever formally known as pentium3id
Advertisement
Try to look up "usertype.dat" in your compiler documentation.
X:\...\Microsoft Visual Studio .NET\Common7\IDE

In the above directory, the IDE looks for a file named usertype.dat containing your keywords. The required format is one keyword per line. AFAIK, there''s no way to do it in the IDE. If you have the MSDN docs installed, check the following help topic:

Defining Keywords in Visual C++

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[twitter]warrenm[/twitter]

Ok i followed all the steps in the Help article, but im stuck on this:

5. In the Tools Options dialog box, in the Display items box, select User keyword.

...can''t find a "Display" tab on the Tools/Options dialog...

Salsa cooked it, your eyes eat it![Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
Prozak - The GameDever formally known as pentium3id
Ok, found it.

Under Tools, Options, Environment, Fonts and Colors:
Display Items, select "User Keywords" and select text color.

...still my v01.cg file inst geting colored correctly. Maybe Visual Studio has to be told that the "cg" extension is a code file?

Salsa cooked it, your eyes eat it![Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
Prozak - The GameDever formally known as pentium3id

This topic is closed to new replies.

Advertisement