Syntax definition and snippets for working with Smarty template engine for PHP.
Loosely based on the Smarty Textmate bundle
Clone this repository in to the Sublime Text 2 "Packages" directory, which is located wherever the "Preferences" -> "Browse Packages" option in sublime takes you. A restart of Sublime may be necessary.
Set syntax of your file to be Smarty.
Currently supported autocompletions (type the keyword and then hit tab):
- assign
- capture
- /capture
- comment (creates a comment block)
- debug (creates a debug print variable statement)
- else
- elseif
- foreach
- /foreach
- if
- /if
- ifelse
- include
- smarty (creates an empty smarty block)