Code Snippets

I imagine this blog to have a significant number of code snippets and this very post is an attempt to find a solution for it.

Following was syntax highlighted using liquid tags. I used to have the actual cde snippet that generated this, but somehow the escaping stopped working with the new version of Jekyll. Will figure it out later and update the blog.

def print_hi(name)
  puts "Hi, #{name}"
end

print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.