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.
-
ShellScript within
"scripts"
forpackage.json
(JSON
)
Requires the builtinShellScript
extension or better-shell-syntax
-
Regular Expressions within
"wordPattern"
,"folding"
,"onEnterRules"
and"indentationRules"
forlanguage-configuration.json
(JSONC
)
Requires JSON TextMate extension
-
Snippets, Regex and Markdown within
"defaultSnippets"
,"pattern"
and"markdownDescription"
for.schema.json
(JSON
)
Requires the builtinJSON Snippets
extension or Snippets Snippets, JSON TextMate and the builtinMarkdown
extension
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.
- The GitHub Issue that spawned the idea
- Repository
- Marketplace