idea-multimarkdown icon indicating copy to clipboard operation
idea-multimarkdown copied to clipboard

Adding an alias for a fenced code block's language identifier

Open austintraver opened this issue 5 years ago • 0 comments

Background Context

This plugin has support for syntax highlighting in fenced code blocks

Including code completion for the code fence info (language string).


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.

austintraver avatar Oct 18 '20 08:10 austintraver