sponsor Vim development Vim logo Vim Book Ad

FX HLSL : Syntax Rules for Microsoft HLSL and FX files

 script karma  Rating 31/15, Downloaded by 1274    Comments, bugs, improvements  Vim wiki

created by
Kevin Bjorke
 
script type
syntax
 
description
These rules provide syntax hilighting and a set of useful "iabbrev" macros for use when writing HLSL (High Level Shading Language) code for DirectX 9 and above. File types includ e.hlsl and .fx -- the abbreviations are provided to reate template declarations for various tweakable data types in FX, including floats, float vectors, matrices, textures and samplers, render passes, etc. They are found defined at the end of the file.

Finally, the shiftwidth is set to 4 to match common shading-language editing tools such as the defaults for Visual Studio.NET and NVIDIA FX Composer.
 
install details
Install in "syntax" and set automated application rules as normal. I suggest trapping files with extensions .hlsl .fx and .fxh
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
fx.vim 1 2003-12-12 6.0 Kevin Bjorke Initial upload
ip used for rating: 54.80.180.248

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo