In general, you can use TextMate syntax highlighting files: the one for Smarty is at http://svn.textmate.org/trunk/Bundles/P ... /Syntaxes/ - you'll need to save the file under Sublime Text's Packages/<something> directory (you can access this via 'Preferences/Browse Packages...'), and rename it such that it has an extension of '.tmLanguage'
I was going to start a thread to provide some instructions on how I enabled Smarty language.
1- With Sublime Text 2 default installation 2 - Open file "Packages\HTML\HTML.tmLanguage", if you search for string "<!--" you will notice that (currently) there is two references to "Smarty language" commented. Un-comment these. 3 - Download this file "http://svn.textmate.org/trunk/Bundles/PHP%20Smarty.tmbundle/Syntaxes/Smarty.plist" as file "Packages\User\Smarty.tmLanguage" 4 - Default "colour-scheme" may not high-lite the syntax properly but "twilight" do. Preferences -> Colour Scheme -> Twilight
Unfortunateley, this method doesn't seem to work with the latest release (Sublime Text 2 Build 2165).
Ok, the Language-packs are now ending on ".sublime-package". I renamed the smarty.tmLanguage to Smarty.sublime-package in the /User directory but Sublime keeps displaying an error message on startup. (I also tried to place it in the root directory of /packages)
Of course, I uncommented the smarty-instructions in the HTML.sublime-package.
Does anybody know how to get smarty highlighting work with the current release of Sublime 2?