Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

0x00000001A/es6-string-html

Repository files navigation

ES6 String HTML

VSCode Marketplace

Open VSX Registry

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

  • HTML (incl. html quoted and unquoted attrs)
  • SQL
  • XML
  • SVG
  • CSS
  • GLSL
  • JavaScript/TypeScript

Community

Installation

Donation

If you've found this extension useful, you can give me a cup of coffee :)

"Buy Me A Coffee"

Example

Example

Usage

Simply insert the comment /*html*/ or html (also works with SQL, SVG, XML, just use the appropriate word) 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 and higher
  • Comment /*html*/ before the string. (also works with CSS, SQL, SVG, XML, JavaScript, just use the appropriate word) Possible values:
    • /*css*/
    • /*html*/
    • /*inline-html*/
    • /*template*/
    • /*inline-template*/
    • /*javascript*/ or /*js*/
    • /*typescript*/ or /*ts*/
  • Or
    • html before the string

Release Notes

[...]

  • See changelog for previous notes

[2.9.0] - 2021年05月18日

Improved

  • CSS support

[2.10.0] - 2021年06月03日

Improved

  • GLSL support

[2.11.0] - 2021年10月05日

Improved

  • PHP files support

[2.12.0] - 2021年10月05日

Fixed

  • Fixes issues with trailing syntax in single-line "sql" syntax shown in issue. And also adds support for Prisma and other ORMs that use "xxxxx.sql" syntax. Author: @jdukleth

[2.14.1] - 2023年12月26日

Improved

[2.15.0] - 2024年04月01日

Added

  • Support for html within jQuery without the need for comments. Author: @scottforte

[2.16.0] - 2024年07月14日

Added

  • Support ReScript syntax. Author: mrmurphy

[2.17.0] - 2024年12月04日

Added


Enjoy!

AltStyle によって変換されたページ (->オリジナル) /