HLSL syntax highlighting for Sublime Text 3
- Total 3K
- Win 3K
- Mac 320
- Linux 126
|Oct 19||Oct 18||Oct 17||Oct 16||Oct 15||Oct 14||Oct 13||Oct 12||Oct 11||Oct 10||Oct 9||Oct 8||Oct 7||Oct 6||Oct 5||Oct 4||Oct 3||Oct 2||Oct 1||Sep 30||Sep 29||Sep 28||Sep 27||Sep 26||Sep 25||Sep 24||Sep 23||Sep 22||Sep 21||Sep 20||Sep 19||Sep 18||Sep 17||Sep 16||Sep 15||Sep 14||Sep 13||Sep 12||Sep 11||Sep 10||Sep 9||Sep 8||Sep 7||Sep 6||Sep 5|
HLSL tools for Sublime Text 3
I'm just trying to provide a better, more fully featured editing environment for HLSL. Because it's kind of ridiculous that we don't already have a real IDE for this.
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.
While the syntax is the core of the plugin, the scripts are where I'm hoping to take it from a simple text editing experience and into being a real IDE experience.
You can right click an include statement to open the referenced file. By default, it will attempt to open relative to the same directory as the including file, but user settings allow additional include paths to be provided.
Get Intrinsic Information On Hover
Mousing over a language intrinsic will give you a popup with the MSDN description and a link to the MSDN page. Now you don't have to forever keep a tab open for the main intrinsics page, and let's be real, anyone reading this probably does.
Swap String Literal Params On Attributes
Can't ever remember what strings are valid for the paritioning attribute of a hull shader? Me either, and now you shouldn't have to. Right click any stage function attribute with a string literal param and get a list of the valid options to insert.
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