Archived

This topic is now archived and is closed to further replies.

Prozak

How to color shader code under VS7?

Recommended Posts

Prozak    898
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

Share this post


Link to post
Share on other sites
ZealousElixir    256
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

Share this post


Link to post
Share on other sites
Prozak    898
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

Share this post


Link to post
Share on other sites
Prozak    898
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

Share this post


Link to post
Share on other sites