Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CodeRay filter for Haml
Ruby
branch: master

Use rbx-2

latest commit ff247726af
@blom authored
Failed to load latest commit information.
lib Fix style
spec
.gitignore add .rbx to .gitignore
.rspec upgrade to rspec 2
.travis.yml
Gemfile
LICENSE
README.md Use badges from Shields
Rakefile Add .rbx to clobber list
VERSION
haml-coderay.gemspec

README.md

haml-coderay

Build Status Gem Version

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.

Encoder

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

For example, if you want to provide your own styling instead of the default inline styling:

Haml::Filters::CodeRay.encoder         = :div
Haml::Filters::CodeRay.encoder_options = { :css => :class }

Installation

gem install haml-coderay
Something went wrong with that request. Please try again.