Skip to content

Instantly share code, notes, and snippets.

@raphaelluchini
Last active December 29, 2015 03:29
Show Gist options
  • Save raphaelluchini/7607663 to your computer and use it in GitHub Desktop.
Save raphaelluchini/7607663 to your computer and use it in GitHub Desktop.
Render text/template as html markup on sublime text
//From: http://stackoverflow.com/questions/9655039/sublime-text-2-recognize-underscore-templates-as-html
//1- Go to "Browse Packages" in the menu (where the menu item is depends on your platform).
//2- Open up HTML/HTML.tmLanguage
//3- Change this line (line 286 in my HTML.tmLanguage):
//Before
<string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)</string>
//After
<string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)(?!.*type=["']text/template['"])</string>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment