idea-multimarkdown
idea-multimarkdown copied to clipboard
Adding an alias for a fenced code block's language identifier
Background Context
This plugin has support for syntax highlighting in fenced code blocks
Including code completion for the code fence info (language string).
- @vsch in #650
Requested Enhancement
A user could, ideally, specify an alias that maps
- a fence code block's language string identifier (e.g.: ```foo)
- what syntax highlighting to use inside the fenced code block (e.g. fooscript)
Elaboration
I often write the following code block
```sh
echo hello
```
which GitHub's README.md file recognizes properly, and will highlight as
echo hello
When I try to load a markdown file that includes code fences whose language identifier is sh, the Markdown Navigator plugin does not recognize them as shell script files.
I'd like the ability to add an alias, where I can say "Hey Markdown Navigator, when you see a code fence whose language identifier issh, that code fence should highlight using shell script syntax.