Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 635 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 635 Bytes

SyntaxHighlighter for rails 3.1

Rails pipeline wraper for SyntaxHighlighter http://alexgorbatchev.com/SyntaxHighlighter/

Install

In you Gemfile

gem 'syntax_highlighter-rails', :git => 'git://github.com/richfisher/syntax_highlighter-rails.git'

Then bundle install

Usage

application.js

//= require syntax_highlighter/shCore
//= require syntax_highlighter/shBrushRuby
//= require syntax_highlighter/shBrushCpp
//= require syntax_highlighter/shBrushSql

SyntaxHighlighter.all()

application.css

 *= require syntax_highlighter/shCore
 *= require syntax_highlighter/shThemeDefault