Mike Trpcic
Mike Trpcic

Reputation: 25659

Plugins/Gems/Libraries to get syntax highlighting for code in the browser?

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.

Upvotes: 4

Views: 385

Answers (2)

Reuben Mallaby
Reuben Mallaby

Reputation: 5767

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.

Upvotes: 4

Related Questions