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?
[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
How to color shader code under VS7?
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
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
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...
[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
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...
[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?
[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
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?
[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
Popular Topics
Advertisement