Thanks to visit codestin.com
Credit goes to github.com

Skip to content

maxevilmind/es6-string-css-highlight

 
 

Repository files navigation

ES6 String HTML

VSCode Marketplace

Adds syntax highlight support for code, placed in es6 multiline strings:

  • HTML (incl. html quoted and unquoted attrs)
  • SQL

Community

Installation

  • Install es6-string-html from extensions (ctrl + shift + x)

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

Example

Example

Usage

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

Requirements

  • Visual Studio Code v1.19.0 recommended
  • Comment /*html*/ before the string. Possible values:
    • /*html*/
    • /*inline-html*/
    • /*template*/
    • /*inline-template*/
  • Or
    • html before the string

Keybindings

  • ctrl+shift+h - Insert /*html*/
  • ctrl+k h - Insert /*html*/ ``

Release Notes

[...]

  • See changelog for previous notes

[1.8.8] - 2019-04-12

  • Match all caps for SQL (by @thebrodmann)

[2.0.0] - 2019-04-12

  • Highlight HTML w/o comments

Enjoy!

About

Highlight code in es6 multiline strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 94.8%
  • HTML 5.2%