update README.md
This commit is contained in:
16
README.md
16
README.md
@@ -2,6 +2,20 @@
|
|||||||
|
|
||||||
Rails pipeline wraper for highlight.js http://softwaremaniacs.org/soft/highlight/en/
|
Rails pipeline wraper for highlight.js http://softwaremaniacs.org/soft/highlight/en/
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
In you Gemfile
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
gem 'highlight_js-rails'
|
||||||
|
|
||||||
|
# or
|
||||||
|
|
||||||
|
gem 'highlight_js-rails', :git => 'git://github.com/chloerei/highlight_js-rails.git'
|
||||||
|
```
|
||||||
|
|
||||||
|
Then `bundle install`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
application.js
|
application.js
|
||||||
@@ -13,6 +27,8 @@ application.js
|
|||||||
hljs.initHighlightingOnLoad();
|
hljs.initHighlightingOnLoad();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
application.css
|
||||||
|
|
||||||
```css
|
```css
|
||||||
*= require highlight_js/github
|
*= require highlight_js/github
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user