Last active
December 29, 2015 03:29
-
-
Save raphaelluchini/7607663 to your computer and use it in GitHub Desktop.
Render text/template as html markup on sublime text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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+)?(<)((?i:script))\b(?![^>]*/>)</string> | |
//After | |
<string>(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)(?!.*type=["']text/template['"])</string> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment