module CodeRay::ForRedCloth

A little hack to enable CodeRay highlighting in RedCloth.

Usage:

require 'coderay'
require 'coderay/for_redcloth'
RedCloth.new('@[ruby]puts "Hello, World!"@').to_html

Make sure you have RedCloth 4.0.3 activated, for example by calling

require 'rubygems'

before RedCloth is loaded and before calling CodeRay.for_redcloth.