views:

268

answers:

2

I have a simple idea for a small web application that I'd like to build out, but it requires syntax highlighting in the same manner that Pastie does. I was wondering if anybody knew what library (jQuery, Prototype, any) was used in the frontend, and/or which (if any) plugins/gems were used in the backend.

For reference, you can find an example of the syntyax highlighting here.

+2  A: 

According to http://blog.pastie.org/2008/11/refactoring-pastie-lessons-learned.html the Ultraviolet gem (http://ultraviolet.rubyforge.org/) is used.

dhofstet
+3  A: 

I've tried Radiograph which seems to work well using ultraviolet. Ultraviolet requires Textpow and Oniguruma.

There is also tm_syntax_highlighting which wraps Ultraviolet too.

Reuben Mallaby