Skip to content

richfisher/syntax_highlighter-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SyntaxHighlighter for rails 3.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages