rails-highlightjs: easy syntax highlighting in Rails
highlightjs-rails was created to offer an up-to-date gemified version of the popular syntax-highlighting library highlight.js.
Installation
Add this line to your RoR application's Gemfile:
gem 'rails-highlightjs'
And then execute:
$ bundle update
Or install it yourself as:
$ gem install rails-highlightjs
Then add the following line to your application.js file
//= require highlight_js
Add to your application.scss file your favorite theme:
import solarized-dark;
Or to your application.css file, like:
/*
*= require solarized-dark;
*/
Usage
TODO: Write usage instructions here
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/davidreghay/rails-highlightjs.git
License
The gem is available as open source under the terms of the MIT License.