Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
/ albino Public archive

Ruby wrapper for the Pygments syntax highlighter.

License

Notifications You must be signed in to change notification settings

github/albino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d3d1259 · Feb 15, 2015

History

48 Commits
Apr 20, 2011
Oct 8, 2011
Oct 8, 2011
Mar 6, 2011
Mar 6, 2011
May 4, 2010
Feb 15, 2015
Jan 11, 2011
Apr 20, 2011

Repository files navigation

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'] ])

About

Ruby wrapper for the Pygments syntax highlighter.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages