Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>JSON Embedded LanguagesNew to Visual Studio Code? Get it now.
JSON Embedded Languages

JSON Embedded Languages

RedCMD

|
127 installs
| (0) | Free
Embedded Language(s) inside JSON
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Embedded Languages

Syntax Highlighting for embedded languages within JSON and JSONC files.
It does so by overriding the default JSON and JSONC languages and assigning scopeNames to objects with the form .meta.embedded.object-key-name..
Then using multiple injection grammars that target and inject specific languages into it.

Features

  • ShellScript within "scripts" for package.json (JSON)
    Requires the builtin ShellScript extension or better-shell-syntax
    Example package.json

  • Regular Expressions within "wordPattern", "folding", "onEnterRules" and "indentationRules" for language-configuration.json (JSONC)
    Requires JSON TextMate extension
    Example language-configuration.json

  • Snippets, Regex and Markdown within "defaultSnippets", "pattern" and "markdownDescription" for .schema.json (JSON)
    Requires the builtin JSON Snippets extension or Snippets Snippets, JSON TextMate and the builtin Markdown extension
    Example schema.json

Known Issues

This extension targets every JSON and JSONC file, not just package.json.
There will be false positives and false negatives.
Please report any you come across.

For more information

  • The GitHub Issue that spawned the idea
  • Repository
  • Marketplace

TODO:

  • package.json/"when"
  • globs/"filenamePatterns"
  • switch JSON escaped oniguruma regex for JSON escaped JavaScript regex
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft