Highlight Bash/shell code in Markdown files

后端 未结 7 1976
猫巷女王i
猫巷女王i 2021-01-29 17:35

How can I highlight the Bash/shell commands in Markdown files?


For example, to highlight js, I write:



        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-29 17:43

    Bitbucket uses CodeMirror for syntax highlighting. For Bash or shell you can use sh, bash, or zsh. More information can be found at Configuring syntax highlighting for file extensions and Code mirror language modes.

提交回复
热议问题