public
Description: Syntax Highlighting extension for RadiantCMS
Homepage: http://simplabs.com/#projects
Clone URL: git://github.com/marcoow/syntax_highlighting.git
syntax_highlighting / syntax_highlighting_extension.rb
100644 18 lines (12 sloc) 0.46 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'
 
class SyntaxHighlightingExtension < Radiant::Extension
  
  version "1.0"
  description "Adds powerful syntax highlighting support to Radiant CMS by wrapping Pygments (http://pygments.org)"
  url "http://simplabs.com/lab/radiant_syntax_highlighting"
  
  def activate
    Page.send :include, SyntaxHighlightingTags
  end
  
  def deactivate
  end
  
end