View Single Post
Wliu
Veteran Member
Join Date: Apr 2013
Old 01-18-2015 , 15:02   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.0
Reply With Quote #17

0.4.0 has been released!
User-created tags now get highlighted correctly (such as cooltag:myVariable).
I also fixed a pretty embarrassing mistake with snippets and settings that caused them to not work in previous versions.

So, now that snippets work, a quick intro to them (in case you have no idea what I'm talking about):
Let's say you want to create a switch-case. Normally you'd have to type everything out, but snippets will autocomplete everything for you when you press tab on a valid prefix. For example, pressing <tab> after typing switch will give you:
Code:
switch(/* expression */) {     case /* value */:     {         /* code */     }     /* Add more cases through the 'case' snippet or the default case through the 'default' snippet */ }
Pressing tab will jump to each comment block allowing you to quickly edit everything.

Supported snippets can be seen through the Alt+Shift+S keybinding (Windows/Linux, not sure about Mac).
__________________
~Wliu

Last edited by Wliu; 01-18-2015 at 15:03.
Wliu is offline