Created
March 29, 2015 20:59
-
-
Save leongaban/cbf0be3de060db1be1d5 to your computer and use it in GitHub Desktop.
Fixing auto comments in HTML files in Sublime Text 2 & 3
This file contains 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
http://wesbos.com/fix-sublime-text-toggle-comment/ | |
The underlying problem is inside the HTML syntax file and it is actually an easy fix. | |
We need to edit the HTML.tmLanguage file that is located in preferences → browse packages → HTML. | |
Open it up and look for a line that looks like the following. It should be around line 286. | |
<string>(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)</string> | |
Replace it with this: | |
<string>(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)(?!.*</script>)</string> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment