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

HLSL Syntax

by MattSutherlin ST3

HLSL syntax highlighting for Sublime Text 3

Details

Installs

  • Total 1K
  • Win 1K
  • OS X 152
  • Linux 56
Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 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
Windows 0 1 0 1 0 1 1 1 6 7 5 1 0 0 0 1 1 2 0 1 0 0 6 0 2 1 0 2 4 0 3 3 2 4 2 5 1 2 3 0 3 2 1 2 4 1
OS X 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 2 0 0 2 0 0 0 0 0
Linux 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

HLSL_ST3

HLSL tools for Sublime Text 3

I'm just trying to provide a better, more fully featured editing environment for HLSL.

A large part of that is the syntax file, where the goal is to hook as much as possile into Sublime's symbol indexer in the most correct, most granular way possible. Functions (and function-esque macros) will link between defintions and call sites in both directions, via GoTo Defintion and GoTo Reference. Structs link from usage to definition, via GoTo Definition. Most everything else will at least get scoped for theme coloration, but more universal coverage towards scope-aware autocompletions is a (long-term) work in progress.

Additionally:

  • Right clicking include directives to open the referenced file is now supported. By default, it will attempt to open relative to the same directory as the incuding file, but user settings allow additional include paths to be provided.
  • Hovering intrinsics will open a popup with a link to MSDN documentation.

Everything works best when your shader source is in an active sublime-project file. Otherwise, some features may only work across open files instead of all of your files.

Best with my HLSL-centric theme, Rocklobster: https://github.com/MattSutherlin/RockLobster_ST3Theme