You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we need to investigate how to support embedded languages in the markdown editor (not for the preview, this is for the source) so that code blocks get colored properly. according to @aeschli TM supports the notion of referencing other grammars from within a grammar. ideally we could reference our installed TM bundles for any code block that is being used in the markdown source
In addition to syntax highlighting this includes code folding and simple intellisense.
The text was updated successfully, but these errors were encountered:
p #[code samp] — Regular text. #[samp This is sample text] more text.
-if(typeof(info) !=='undefined')
p Conditional text.
The coloring of the 'if' clause is driven by the javascript grammar. To see the scopes each token gets, use the developer tools: Inspect HTML element.
You can see that the token contains js in the scope. It comes from a rule that is defined in vscode/extensions/javascript/syntaxes/JavaScript.tmLanguage
To see how this is done in the Jade grammar, check the Jade grammar vscode/extensions/jade/syntaxes/Jade.tmLanguage and look for include source.js in the Unbuffered code block rule
From microsoft/vscode#6106
we need to investigate how to support embedded languages in the markdown editor (not for the preview, this is for the source) so that code blocks get colored properly. according to @aeschli TM supports the notion of referencing other grammars from within a grammar. ideally we could reference our installed TM bundles for any code block that is being used in the markdown source
In addition to syntax highlighting this includes code folding and simple intellisense.
The text was updated successfully, but these errors were encountered: