705 B
705 B
title, permalink, audience, tags, keywords, last_updated, summary
title | permalink | audience | tags | keywords | last_updated | summary |
---|---|---|---|---|---|---|
Syntax highlighting | /syntax_highlighting/ | writer, designer | formatting |
{% include linkrefs.html %}
For syntax highlighting, use fenced code blocks optionally followed by the language syntax you want:
def foo
puts 'foo'
end
Fenced code blocks require a blank line before and after.
If you're using an HTML file, you can also use the highlight
command with Liquid markup:
{% raw %}
{% highlight ruby %}
def foo
puts 'foo'
end
{% endhighlight %}
{% endraw %}
The theme has syntax highlighting configured in the configuration file as follows:
highlighter: rouge