Adds syntax highlight support for code, placed in es6 multiline strings:
- HTML (incl. html quoted and unquoted attrs)
- SQL
- es6-string-css - Highlight CSS in ES6 template literals
- python-string-html - Highlight code in python multiline strings
- Install
es6-string-htmlfrom extensions (ctrl + shift + x)
Simply insert the comment /*html*/ or html (or sql instead of html) before the string
(see Requirements "section" for possible values) or select
Insert es6-string-html comment/template from the commands menu
(ctrl+shift+p or f1)
Tip: Comment in the beginning of es6 string is required
- Visual Studio Code v1.19.0 recommended
- Comment
/*html*/before the string. Possible values: -
/*html*/
-
/*inline-html*/
-
/*template*/
-
/*inline-template*/
- Or
-
htmlbefore the string
ctrl+shift+h- Insert/*html*/ctrl+k h- Insert/*html*/``
If this project help you reduce time to develop, you can give me a cup of coffee :)
- Syntax highlighting for html in es6 multiline strings
- Compatibility with Prettier
- Commands and keybindings
- Syntax highlight without a comment
- Follow semver
- JS Syntax highlight
- Single-line comment support
- Compatibility with Prettier
- Add SQL support. Beta
- Improve support for html function
- Improve html function support
- Improve single-line comments support
- Disable hotkeys
- Unquoted attributes support
- Fix js-in-attributes support
- Fix missing
${}syntax support in sql
- Fix broken multiline support for jquery
Enjoy!

