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: