Rails pipeline wraper for highlight.js
https://github.com/RedstonerServer/highlight_js-rails
lib | ||
vendor/assets | ||
.gitignore | ||
AUTHORS.en.txt | ||
AUTHORS.ru.txt | ||
classref.txt | ||
Gemfile | ||
highlight_js-rails.gemspec | ||
LICENSE | ||
Rakefile | ||
README.md |
Highlight.js for rails 4
Rails pipeline wraper for highlight.js http://softwaremaniacs.org/soft/highlight/en/
This is a fork updated to higlightjs 8.4
Install
In you Gemfile:
gem 'highlight_js-rails', :git => 'git://github.com/RedstonerServer/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