Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>html-in-stringNew to Visual Studio Code? Get it now.
html-in-string

html-in-string

Muhammadrizo

|
3 installs
| (0) | Free
Now VS code supports HTML code inside a string, with all color and whatever... Just start the string with '<'
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HTML in JS Strings

Provides syntax highlighting for HTML inside JavaScript and TypeScript template literals and strings.

Features

  • ✅ HTML syntax highlighting in template literals
  • ✅ HTML syntax highlighting in regular strings
  • ✅ Support for template literal interpolations (${})
  • ✅ Works with JavaScript, TypeScript, JSX, and TSX files

Usage

Simply write HTML inside template literals or strings:

```javascript const html = `

Hello World

This HTML is now highlighted!

\`;

const component = ` `; ```

Installation

Install from the VS Code Extension Marketplace

Release Notes

1.0.0

  • Initial release
  • HTML syntax highlighting in template literals
  • HTML syntax highlighting in quoted strings
  • Support for template literal interpolations
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft