Sign in to follow this  
clb

Syntax highlighting for HLSL code in VS.

Recommended Posts

I vaguely remember that some years ago in VS2003/2005 and some DirectX SDK version installing the SDK would make VS do syntax highlighting in .fx files. I was under the assumption that this feature was later on dropped, but does anyone know if it is still possible to get the feature back (in VS2008SP1)? What programs do you use to author HLSL code anyways? RenderMonkey? FX Composer? Something else?

Share this post


Link to post
Share on other sites
I personally just set VS to treat .hlsl files as C++ files. While most keywords are not highlighted, it does take care of indentation and other nice features that make it decent enough to use (not saying the plugin isn't good, or that you shouldn't use it).

Share this post


Link to post
Share on other sites
Thanks, that's exactly what I was after. Such an useful feature, wonder why the DXSDK team dropped their (existing!) hilighting code from the editor.

In case anyone else is trying it, you need to run VS in administrator mode for it to work. In normal mode, you just get an exception error when trying to edit .fx files and the highlighting doesn't work. (Version 3.0beta)
The author says he's working to fix this to version 3.1 though.

Cool!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this