[No maintained] Rails pipeline wraper for highlight.js
Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
vendor/assets
.gitignore
AUTHORS.en.txt
AUTHORS.ru.txt
Gemfile
LICENSE
README.md
Rakefile
classref.txt
highlight_js-rails.gemspec

README.md

Highlight.js for rails 3.1

Rails pipeline wraper for highlight.js http://softwaremaniacs.org/soft/highlight/en/

Install

In you Gemfile

gem 'highlight_js-rails'

# or

gem 'highlight_js-rails', :git => 'git://github.com/chloerei/highlight_js-rails.git'

Then bundle install

Usage

application.js

//= require highlight_js/highlight
//= require highlight_js/languages/ruby

hljs.initHighlightingOnLoad();

application.css

*= require highlight_js/github