Ruby wrapper for the Pygments syntax highlighter.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
vendor fix Albino::Multi accepting UTF-8 input Oct 8, 2011
.gitignore gemfile to install gemspec dependencies Mar 6, 2011
Gemfile gemfile to install gemspec dependencies Mar 6, 2011
LICENSE
README.md Update README to reflect unmaintained status Feb 15, 2015
Rakefile Release 1.2.1 Jan 11, 2011
albino.gemspec Version 1.3.3 w/ dependency on posix-spawn 0.3.6 for win32/jruby Apr 20, 2011

README.md

NOTE: This repository is no longer supported or updated by GitHub. If you wish to continue to develop this code yourself, we recommend you fork it.

Albino: a ruby wrapper for pygmentize

This project is an extraction from GitHub.

For this and other extractions, see http://github.com/github

Installation

sudo easy_install pygments
gem install albino

Usage

Simple

require 'albino'
puts Albino.colorize('puts "Hello World"', :ruby)

Advanced

require 'albino'
@syntaxer = Albino.new(File.new('albino.rb'), :ruby, :bbcode)
puts @syntaxer.colorize

Multi

require 'albino/multi'
ruby, python = Albino::Multi.colorize([ [:ruby,'1+2'], [:python,'1-2'] ])