Highlighting Code

Simplicity is GitHub Pages-ready, that means, it uses Rouge for syntax highlighting. To adjust the code highlighting to your taste, Just open _sass/_07_syntax_highlighting.scss and tune the colors to your taste.

To learn more, read »Mixing Color for the Web with Sass« or check out the Sass-manual with all the functions.

Rouge

To render a code block with syntax highlighting, surround your code as follows:

{% highlight ruby %}
def foo
  puts 'foo'
end
{% endhighlight %}

If you need lines, add linenos

>
1
2
3
4
5
{% highlight ruby linenos %}
def foo
  puts 'foo'
end
{% endhighlight %}

Written by Moritz »mo.« Sauer //