This project is an extraction from GitHub.
For this and other extractions, see http://github.com/github
Note: This library is deprecated in favor of pygments.rb.
sudo easy_install pygments
gem install albino
require 'albino'
puts Albino.colorize('puts "Hello World"', :ruby)
require 'albino'
@syntaxer = Albino.new(File.new('albino.rb'), :ruby, :bbcode)
puts @syntaxer.colorize
require 'albino/multi'
ruby, python = Albino::Multi.colorize([ [:ruby,'1+2'], [:python,'1-2'] ])