首页 文章

如何将octopress代码块颜色改为像github一样的颜色?

提问于
浏览
6

Octopress(黑暗)

a busy cat

Octopress(Light)
a busy cat

Github上

a busy cat

Octopress默认颜色不是很好,如何将代码块的颜色改为Github样?

1 回答

  • 4

    我有同样的问题,但我想在我的帖子中使用Twilight配色方案 .

    您可以使用kramdown和CodeRay代替rdiscount,这将允许您选择与代码段中每个代码对象关联的颜色 . 我写了一篇关于如何做的博客文章:

    http://blog.alestanis.com/2013/02/04/octopress-and-the-twilight-color-scheme/

    EDIT:

    我为coderay here找到了一个GitHub主题 .

相关问题