[SHARING] Jitter shader syntax highlighting for Sublime Text
Hello, Jitterheads!
I don't know about you, but when I get syntax errors in shaders, they're mainly in the XML tags. This happens because syntax problems in this part of the shader aren't well reported in the Max console, and thus, it's very easy to misspell some words and get crazy trying to find where the mistake is (at least for me...).
I edit my shaders in Sublime Text, and for the reasons above, I decided to put together and share a package that highlights jitter-specific syntax in Sublime Text.
These are the installation steps:
1) Download and install Sublime Text (if you haven't already). You can find the software at this link. Just download the correct version for your OS and install it.
2) Install the Package Control. Open Sublime Text, then go to "Tools" -> "Command Palette..." in the menu.
Then, Type Install Package Control and press enter.
This message should confirm the success of the installation.
3) Install GLSL syntax. Open again the Command Palette, type: "Package Control: Install package", and press Enter
, then type "GLSL" and click on "OpenGL Shading Language (GLSL)."
4) Editing the default GLSL syntax highlighting. Once again, open the command palette, type "Package Control: Install package", press Enter, then type "packageResourceViewer", and press Enter.
For the last time, open the Command palette again, type: "packageResourceViewer: Open Resource", and press enter.
Then scroll down and select "OpenGL Shading Language (GLSL)."
and finally, select "GLSL.sublime-syntax."
This should open a document. Leave it open and go to the next step.
Now download the following text file:
As the title suggests, unzip, open the file, select everything, and copy. Then, go back to the file GLSL.sublime-syntax, still open in Sublime Text, select and delete everything, and paste. Finally, save this modified version, overwriting the original.
If everything works correctly, whenever you open a .jxs, .jxp, or .glsl file, it should look something like this:
or in a .jxp file
Note: If you must return to the original GLSL syntax package, download it again.
I hope this package can be helpful for you as it is for me.
No longer stupid syntax errors in the XML tags!
Ciao
Ciao Matteo,
Thank you for this tricky thing, I often break my head trying to figure out where the errors are. Hope that now it will be easier!