public
Description: Syntax Highlighting extension for RadiantCMS
Homepage: http://simplabs.com/lab/radiant_syntax_highlighting
Clone URL: git://github.com/marcoow/syntax_highlighting.git
Search Repo:
name age message
folder README Sun Mar 16 10:23:08 -0700 2008 fixed README [Marco Otte-Witte]
folder Rakefile Fri Feb 29 14:43:41 -0800 2008 initial commit [Marco Otte-Witte]
folder app/ Sun Apr 13 03:25:16 -0700 2008 fixed exception display [marcoow]
folder lib/ Sat Mar 01 01:48:34 -0800 2008 Reformatted, removed deboug output [Marco Otte-Witte]
folder public/ Fri Feb 29 14:43:41 -0800 2008 initial commit [Marco Otte-Witte]
folder syntax_highlighting_extension.rb Fri Feb 29 14:43:41 -0800 2008 initial commit [Marco Otte-Witte]
folder test/ Fri Feb 29 14:43:41 -0800 2008 initial commit [Marco Otte-Witte]
README
= Syntax Highlighting

The Syntax Highlighting extension adds the new <r:code [language]></r:code> tag to Radiant
that converts source code in multiple languages to HTML.


= Installation

To install the Syntax Highlighting extension, just do

cd path_to_your_radiant_project
git clone git://github.com/marcoow/syntax_highlighting.git vendor/extensions/syntax_highlighting

After that, run

rake radiant:extensions:syntax_highlighting:install

As a last step, include the stylesheet syntax_highlighting.css (automatically installed to
your public/stylesheets directory) into your layout.


= Usage

To add highlighted code to a page, use the <r:code [language]> tag like so:

<r:code language="ruby">
  class Mylass
  
    def do
      puts 'doing'
    end
  
  end
</r:code>


= Author

The Syntax Highlighting extension was written by Marco Otte-Witte.

http://simplabs.com/lab/radiant_syntax_highlighting


= Acknowledgements

The Syntax Highlighting extension is basically just a wrapper around the great python
project Pygments (http://pygments.org/) that highlights source code in more than 30
languages and dialects (Brainf*ck being one of them).