public
Description: syntax higlighting plugin for Ruby on Rails
Homepage: http://simplabs.com/#projects
Clone URL: git://github.com/marcoow/highlight.git
highlight / init.rb
100644 13 lines (10 sloc) 0.311 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'simplabs/highlight'
 
if `which pygmentize`.blank?
  puts "*** [Highlight] pygments cannot be found, highlighting code won't work!"
  Simplabs::Highlight.initialized = false
else
  Simplabs::Highlight.initialized = true
end
 
ActionView::Base.class_eval do
  include Simplabs::Highlight::ViewMethods
end