Sublime Text 2 recognize underscore templates as HTML
Go to “Browse Packages” in the menu (where the menu item is depends on your platform). Open up HTML/HTML.tmLanguage Change this line (line 286 in my HTML.tmLanguage): <string>(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)</string> to this: <string>(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)(?!.*type=[“‘]text/template[‘”])</string> Now any script tags with type=”text/template” or type=”text/template” will render as html and not javascript.