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

Js *_*Lim 6 github sass colors codeblocks octopress

Octopress(黑暗)
一只忙碌的猫

Octopress(光) 一只忙碌的猫

Github上
一只忙碌的猫

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

ale*_*nis 4

我有同样的问题,但我想在我的帖子中使用暮光之城配色方案。

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

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

编辑:

我在这里找到了 Coderay 的 GitHub 主题。