ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Unity​3​D Shader Highlighter and Snippets

Adds Syntax Highlighting for Unity3D .shader files to Sublime Text

Details

Installs

  • Total 11K
  • Win 7K
  • OS X 3K
  • Linux 265
May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14
Windows 1 2 5 7 9 6 11 3 4 3 8 7 5 12 10 3 8 13 10 5 8 1 5 8 6 10 3 5 1 1 9 8 8 3 3 7 3 5 10 5 9 7 4 5 6 6
OS X 2 1 1 4 1 1 1 2 0 0 1 2 1 3 4 1 1 2 2 3 2 3 1 1 0 4 1 1 1 3 1 1 2 0 1 0 1 0 0 1 2 3 3 1 1 1
Linux 0 1 0 0 2 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

What does this do?

This is a package for Sublime Text 3 which adds syntax hightlighting, snippets and completions for Shaders used by the Unity3D Engine.

Currently the following features are included:

  • Highlighting of .shader and .cginc files
    • Highlights most keywords, variables, strings and comments
    • Uses C++ highlighting (with a few additional keywords) inside CGPROGRAM/ENDCG
  • Simple snippets for creating properties
  • Highlighting of .compute files
    • Uses C++ highlighting with a few additional keywords added

DISCLAIMER

The syntax highlighting is rather incomplete. If there are any syntax errors you encounter or any features you want added please don't hesitate to create an issue.