Replace LANGUAGE with the name of the language everywhere
- Add the
LANGUAGE-mdx-injection.json
tosyntaxes
of your extension. - Add new language ID into "contributes.languages" section of
package.json
(see below) - Add new grammar definition to "contributes.grammars" section of
package.json
(see below)
{
"contributes": {
"languages": [
{
"id": "LANGUAGE-mdx-injection"
}
],
}
}
{
"grammars": [
{
"language": "LANGUAGE-mdx-injection",
"scopeName": "mdx.LANGUAGE.codeblock",
"path": "./syntaxes/LANGUAGE-mdx-injection.json",
"injectTo": [
"source.mdx"
],
"embeddedLanguages": {
"meta.embedded.block.LANGUAGE": "LANGUAGE"
}
}
]
}