Octopress (Dark)
Octopress (Light)
Github
Octopress default color is not that nice, how to change the color for code block to Github-like?
Octopress (Dark)
Octopress (Light)
Github
Octopress default color is not that nice, how to change the color for code block to Github-like?
I had the same problem, but I wanted the Twilight color scheme in my posts.
You can use kramdown and CodeRay instead of rdiscount, which will let you choose the color associated with every code object in your snippets. I wrote a blog post about how to do it:
http://blog.alestanis.com/2013/02/04/octopress-and-the-twilight-color-scheme/
EDIT:
I found a GitHub theme for coderay here.
Gemfile
and did bundle
after? You don't have any errors in the console when you generate your blog? –
Nonce gem install kramdown
. Must it put in Gemfile? –
Muddy bundle
has no way of knowing that your blog project actually needs kramdown
, even if it's installed in your system. –
Nonce {:lang="ruby"}
like this? Previously what I did is use triple back quote ```. Because even I put kramdown into Gemfile also come out the same problem. –
Muddy © 2022 - 2024 — McMap. All rights reserved.
Pygments
then use (pygments-style-github
)[pypi.python.org/pypi/pygments-style-github] – Maimpygments: false # default python pygments have been replaced by pygments.rb
in _config.yml it mention that by default is replaced by pygments.rb – Muddy