Syntax Highlighting

Is anyone using the syntax_highlighting extension?

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”

renders as:

import pygments foo = “bar”</

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



No, but you can steal my CSS styles:



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?