JS String Syntax is a Visual Studio Code extension that highlights HTML and SQL embedded in JS strings. The extension automatically infers HTML and SQL content by default, while also supporting explicit language markers (/*html*/ and /*sql*/) to identify and apply syntax highlighting to HTML content and SQL queries.
Features
Automatic Language Detection: Infers and highlights HTML and SQL content in JS strings without requiring explicit markers.
Explicit Language Markers: Supports /*html*/, and /*sql*/ comments for explicit language specification when needed.
Compatibility with Other Editors: The use of language markers does not interfere with syntax in other editors or IDEs.
Multiple String Types: Works with all JavaScript string types including single quotes ('), double quotes ("), and template literals (`).