Highlight Bash/shell code in Markdown files

后端 未结 7 1983
猫巷女王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:57

    If I need only to highlight the first word as a command, I often use properties:

    ```properties
    npm run build
    ```  
    

    I obtain something like:

    npm run build

提交回复
热议问题