ykk
V2EX  ›  问与答

在 markdown 中将 Linux 命令高亮,使用的代码类型是什么?

  •  
  •   ykk · Jul 23, 2016 · 16237 views
    This topic created in 3647 days ago, the information mentioned may be changed or developed.
    4 replies    2016-08-17 18:17:00 +08:00
    keenkiller
        1
    keenkiller  
       Jul 23, 2016 via iPad
    sh bash 可以试试
    aborn
        2
    aborn  
       Jul 23, 2016
    shell
    xmgit
        3
    xmgit  
       Jul 24, 2016
    首先要问你,是通过哪个 highlighter 来高亮的
    pygments 中有 console,shell, shell-session,bash, sh, ksh
    rouge 中有 shell, shell-session
    ykk
        4
    ykk  
    OP
       Aug 17, 2016
    @Bardon 是 highlight.js 没有 shell 用的 bash 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2829 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: ce1cc7fc · 46ms · UTC 09:33 · PVG 17:33 · LAX 02:33 · JFK 05:33
    ♥ Do have faith in what you're doing.