haml-coderay

CodeRay filter for Haml. Specify which language to highlight with a shebang followed by the language name:

:coderay
  #!ruby

  if true
    puts "hello"
  end

Use :coderay_raw if you want to disable #{} interpolation.

The default encoder and encoder options are :div and {}, respectively, and they can be altered through:

Haml::Filters::CodeRay.encoder
Haml::Filters::CodeRay.encoder_options

Installation

gem install haml-coderay