Re: [Radiant] best code syntax highlighting solution

2010-12-08 Thread john muhl
On Wed, Dec 8, 2010 at 1:39 AM, craayzie flesh...@gmail.com wrote:
 I've begun to explore Radiant as a publishing/blogging platform. At
 the moment, I'm trying to nail down is how to best format command-line
 output or code as the majority of the content published will be of a
 technical nature.

 Can someone point me in the right direction of what I should use to
 get the desired affect :P

 I found http://alexgorbatchev.com/SyntaxHighlighter/ which is a
 JavaScript-based solution. Unfortunately it doesn't appear to support
 formatting/highlighting command-line output.

 What's the best Radiant filter / JS library / some-other-solution out
 there for both command-line output and code syntax highlighting?

i like kramdown + coderay.


Re: [Radiant] best code syntax highlighting solution

2010-12-08 Thread Fima Leshinsky
Thanks John - will take a look. Do you have any public pages you can share
as examples?


Re: [Radiant] best code syntax highlighting solution

2010-12-08 Thread john muhl
http://johnmuhl.com/tmp/kramdown-coderay

the kramdown looks like (replace - with space):

def meth options
--p options
end
{:lang=ruby}

just a standard markdown code block followed by {:lang=lang}

http://coderay.rubychan.de/ list the supported languages.

On Wed, Dec 8, 2010 at 12:37 PM, Fima Leshinsky flesh...@gmail.com wrote:
 Thanks John - will take a look. Do you have any public pages you can share
 as examples?