The built-in markdown editor has a "live-preview" for code blocks without open a side previewer.
I was looking for a list of supported language highlight, which as I understand is defined by highlight.js supported language.
I need to add some "ssh config files" in my markdown, but
- when I use
propertieslanguage tag, only side previewer shows the highlight, not the editor itself - when I try with a weird "s" language alias, the editor can detect the comments and non-alphabetic characters. But the side previewer shows nothing...
VSCode screenshot:
My questions:
- "s" is not defined as an alias in highlight.js, then how come the editor can detect the language?
- Why the editor and previewer do not have the same highlight behavior?
- I prefer to have the correct highlight in editor, which language/alias should I use in place of "properties"?
