Skip to content

Instantly share code, notes, and snippets.

@cheshirecode
Last active March 2, 2022 09:07
Show Gist options
  • Save cheshirecode/9fe1542d98d830ea1961bbdb1de88d68 to your computer and use it in GitHub Desktop.
Save cheshirecode/9fe1542d98d830ea1961bbdb1de88d68 to your computer and use it in GitHub Desktop.
Sublime editor support for HTML within ES6 template strings
Find Sublime config folder:
- Windows: %APPDATA%\Sublime Text 2
- OS X: ~/Library/Application Support/Sublime Text 2
- Linux: ~/.config/sublime-text-2
Open up [CONFIG]/Packages/Babel/JavaScript (Babel).sublime-syntax in editor.
Search for the section template-string-body, add these to the beginning:
- meta_content_scope: text.html.basic.embedded.js
- include: scope:text.html.basic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment