bash/sh/shell codeblock syntax highlight #6504
Replies: 2 comments 17 replies
-
This is really a question about the syntax highlighter used. Note that you have two options there, Pygments or a JavaScript highlighter, with Pygments being the default. The Pygments support for bash seems somewhat limited. You may have more luck using a JavaScript highlighter. Having said that, highlight.js did not fare better with a mount command. I guess they would all work better with actual bash syntax such as for loops, conditionals, etc.? To be honest, I personally do not find either version particularly helpful. The more colorful rendering that VSCode produces does not exactly clarify things, I think (why are |
Beta Was this translation helpful? Give feedback.
-
Hi all, just adding that I also find the shell syntax highlighting unsatisfying, for example: Those colors do more harm than good. |
Beta Was this translation helpful? Give feedback.
-
Hi,
in VS Code my bash/sh/shell codeblocks look like this:
is there a way to do this in mkdocs-material?
Currently it renders like this:
Thanks a lot for your help
Beta Was this translation helpful? Give feedback.
All reactions