Browse the Ruby on Rails Community.

You are here: Browse Rubygems Coderay

Coderay

CodeRay is a fast syntax highlighter engine for many languages. CodeRay is a Ruby library for syntax highlighting. I try to make CodeRay easy to use and intuitive, but at the same time fully featured, complete, fast and efficient. Usage is simple: require ‘coderay’ code = ‘some %q(weird (Ruby) can’t shock) me!’ puts CodeRay.scan(code, :ruby).html


Homepage: http://coderay.rubychan.de