public
Description: Syntax Highlighting extension for RadiantCMS
Homepage: http://github.com/marcoow/syntax_highlighting/wikis
Clone URL: git://github.com/marcoow/syntax_highlighting.git
Search Repo:
marcoow (author)
Sun Apr 13 03:25:16 -0700 2008
commit  986456061f5fcf67fdd9a878be083d588390ea07
tree    b03b2d2f7c4dd54bb2c2ffa8130b738a7322c65c
parent  1fe50b0756f959c220f6f998d5276c8e0b90be6a
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