NShader is an extension to Visual Studio 2008/2010/2012 that provides syntax highlighting for various shader languages including HLSL - GLSL - CG..
* Bugfix when using NShader from a user domain account
* Bugfix on preprocessor directive that were not highlighted correctly
* Bugfix for strings. Strings are now highlighted correctly
* Add new GLSL keywords 4.0
* Add new HLSL keywords (Interpolation Modifiers, register modifier)
* Add *.fxh files extension for HLSL files
* Add *.geom files extension for GLSL files
- 16 May 2010, NShader 1.1 - VS2008. This release is introducing support for Visual Studio 2010 and includes some hlsl bugfixes (add new hlsl file extensions and keyword from Shader Model 5.0)
- 1st Oct 2009, NShader 1.0 initial release!. This release supports basic highlighting for HLSL, GLSL and CG under Visual Studio 2008.
- Basic highlighting for HLSL, GLSL, CG languages (comment, number, floats, keywords, builtin functions)
- Additional special highlighting per language : Semantics for HLSL, builin variables for GLSL.
NShader uses a specific shader language highlighting based on the following file extensions :
- .fx, .fxh, .hlsl, .vsh, .psh files : HLSL syntax highlighter.
- .glsl, .frag, .vert, .fp, .vp, .geom files : GLSL syntax highlighter.
- .cg, .cgfx, files : CG syntax highlighter.
- Visual Studio 2008 or Visual Studio 2010 (at least tested on Pro version). Express editions are not supported as they don't allow community addins.
- .NET Runtime 3.5 on Windows (and 4.0 for Visual Studio 2010) : Microsoft .NET 3.5 Runtime.
- The CG syntax highlighter is using the same HLSL syntax highlighter (they have similar keywords).
- No syntax analyzing and checking. NShader only use a basic tokenizer to extract keywords.
- No braces/bracket matching
- No completion
- No formatting
You are welcome to contribute to this project.
A non exhaustive list of possible directions to extend this project could be:
- Add braces/bracket matching
- Add code formatting
- Add compilation checking (using fxc...etc.).
Go to NShader
to have more information. Leave a message in the discussion tab.
Contact author: alexandre_mutel <at> yahoo <dot> fr
Contact on Gamedev Forum: AlexandreMutel
Blog : Code4k