16 lines
418 B
Markdown
16 lines
418 B
Markdown
---
|
|
layout: post
|
|
title: Code Snippets
|
|
date: 2015-05-27 20:58:27
|
|
category: test
|
|
---
|
|
|
|
Whenever you need to post a code snippet, use the liquid tags `highlight` and `endhighlight` like this:
|
|
|
|
{% highlight ruby %}
|
|
# some code goes here
|
|
puts "Hello World!"
|
|
{% endhighlight %}
|
|
|
|
Note that this only provides color-coding. For that you might need to use a front end colorization engine like Highlight.JS or something similar.
|