anilwadghule.com

home archive resume about contact

Enabled Ruby Syntax Coloring

December 30, 2006

Checking Ruby syntax coloring.

require 'rubygems'
require 'hpricot'
require 'open-uri'

doc = Hpricot(open("index.rdf"))

doc.search("item").each do |i|
puts i.search("link").inner_html
puts "\n\n"
end
Cool!
If you want to do the same on your blog, visit http://www.rubyinside.com/advent2006/7-coloring.html
managed by github ¤ generated by jekyll ¤ licensed by creative commons ¤ served by github