Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>HTML&LESS grammar injectionsNew to Visual Studio Code? Get it now.
HTML&LESS grammar injections

HTML&LESS grammar injections

Sheru

|
5,508 installs
| (5) | Free
Grammar injection. Html templates in backtick strings in JS and PHP files. Less Language in style tab with type attribute set to text/less and lang to less
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HTML & LESS grammar injections

This Visual Studio Code extension enables syntax hightlighting for HTML in template strings (backticks "``") in php, html, js and vue files.

Also for LESS in template blocks in HTML and PHP files.

php-example

  • Grammar injection for html templates in backtick quoted strings in JS files.
  • Grammar injection for html templates in backtick quoted strings in PHP files.
  • Grammar injection for LESS language in style tags with type attribute set to text/less. Ex: <style type="text/less"></style>
  • Grammar injection for LESS language in style tags with lang attribute set to less. Ex: <style lang="less"></style>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft