HLSL and Effect file syntax highlighting language definition file for the Notepad++ editor

jwatte's picture

Attached, please find a syntax highlighting file for HLSL and Effect files for Notepad++. This file is substantially better than the one available on the Notepad++ main download site:

  • It adds all of the Effect file tokens, in UPPERCASE and ProperCase forms.
  • It defines operators to let the built-in functions be recognized.
  • It recognizes preprocessor directives.
  • It recognizes semantic definitions.
  • It adds a number of missing tokens, and removes tokens that aren't actually HLSL.

To install it, follow the instructions under "User Defined Languages" on the Notepad++ download page: http://notepad-plus.sourceforge.net/uk/download.php

AttachmentSize
notepad++-hlsl.zip2.06 KB

Comments

Worked Great

Thank you, HLSL syntax highlighting works a delight.

Pretty easy to get up and running
1) Extract the contents from the notepad++-hlsl.zip
2) Run Notepad++ click "View -> User-Defined-Language"
3) Click the import button and find the file extracted from the .zip in "1)"
4) Restart notepad++

Job done.

jwatte's picture

The file is brought back from

The file is brought back from the dead. Thanks for the note!

Link broken?

I get a "requested page could not be found" when I try to download that link :(

Hi. I install it, but cant

Hi. I install it, but cant understand, why coloring working on "COLOR", but not work on POSITION and etc from group 3. Big thx for work btw.