Syntax Highlighting

Is anyone using the syntax_highlighting extension?
http://github.com/marcoow/syntax_highlighting/tree/master

It seems to be doing the parsing, but when it renders in a page, it’s
strictly as “code” html, so all the tags that input as part of
it are rendered as well.

For example,

<r:code language=“python”>
import pygments
foo = “bar”
</r:code>

renders as:

import pygments foo = “bar”</
span>

Any ideas? There is currently no filter set on the page, and if I set
it to “textile” all the < & > get turned to < & >, respectively.

Is there another option for syntax highlighting? I would like to have
more languages than code_ray currently supports.

It’s not perfect, but I like using Dan W.'s Syntax Highlighter
(JavaScript). Just put your source code inside tags with the
class of the language you want, like so:

puts “Hello, World!”

You can download it at http://danwebb.net.

Sean

Josh,

No, but you can steal my CSS styles:
http://seancribbs.com/stylesheets/code.css

Sean

Sean,

That’s sharp. I love the fact that it’s unobtrusive and seems much
more accessible for customization than some of the others. Thanks for
pointing it out. Have you written a regex for anything?

Regards,
Josh