NShader: Visual Studio Syntax Highlighter for GLSL, HLSL and Cg Languages

If you code your real time shaders in Visual Studio, here is an extension that could be handy. NShader is a Visual Studio 2008 / 2010 extension that brings syntax highlighting for common shading languages: GLSL (OpenGL), HLSL (Direct3D) and Cg.
NShader does its by looking at the file extensions:
- .fx, .hlsl, .vsh, .psh files : HLSL syntax highlighter.
- .glsl, .frag, .vert, .fp, .vp, .geom files : GLSL syntax highlighter.
- .cg, .cgfx, files : CG syntax highlighter.
Tweet
[ Subscribe to Geeks3D latest news by email ]














Auto-completion would have been great
And it would also be great if it was possible to install it in Visual Studio 2010 Ultimate…
Problem solved…
Turned out that a registry error was preventing the installation…
[...] NShader – If you use MSVC and you write shaders, this one’s for you. It highlights shader text as you’d expect, highlighting function names correctly and generally making code more readable. Worthwhile, I’ve installed it, it’s fine. That said, you can get 90% of the way there (and for sure 100% virus free) by simply using “Options | Text Editor | File Extension” and setting extension .fx (.fxh, etc.), choosing Microsoft Visual C++, then clicking Add. Do it now. [...]