This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 986456061f5fcf67fdd9a878be083d588390ea07
tree b03b2d2f7c4dd54bb2c2ffa8130b738a7322c65c
parent 1fe50b0756f959c220f6f998d5276c8e0b90be6a
tree b03b2d2f7c4dd54bb2c2ffa8130b738a7322c65c
parent 1fe50b0756f959c220f6f998d5276c8e0b90be6a
| name | age | message | |
|---|---|---|---|
| |
README | Sun Mar 16 10:23:08 -0700 2008 | [Marco Otte-Witte] |
| |
Rakefile | Fri Feb 29 14:43:41 -0800 2008 | [Marco Otte-Witte] |
| |
app/ | Sun Apr 13 03:25:16 -0700 2008 | [marcoow] |
| |
lib/ | Sat Mar 01 01:48:34 -0800 2008 | [Marco Otte-Witte] |
| |
public/ | Fri Feb 29 14:43:41 -0800 2008 | [Marco Otte-Witte] |
| |
syntax_highlighting_extension.rb | Fri Feb 29 14:43:41 -0800 2008 | [Marco Otte-Witte] |
| |
test/ | Fri Feb 29 14:43:41 -0800 2008 | [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).




