PrismJS / prism

Lightweight, robust, elegant syntax highlighting.
https://prismjs.com
MIT License
12.25k stars 1.29k forks source link

Hide languages for code blocks when data-language='none' or bash commands #2554

Open CodAffection opened 4 years ago

CodAffection commented 4 years ago

Is it possible to override 'Show Language' plugin for hiding code block language from toolbar. Would be helpful in the following situations.

Is there any specific language npm commands, currently i'm using bash+shell.

RunDevelopment commented 4 years ago

You can use the data-toolbar-order attribute to disable the Show Language plugin for specific code blocks.

Also, Show Languages should probably display "Plain text" for language-none. I'll add that.

Is there any specific language npm commands

No. Bash is the best we have for that.