Plugins/Gems/Libraries to get syntax highlighting for code in the browser?
-
06-07-2019 - |
Question
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.
Solution
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.
OTHER TIPS
According to http://blog.pastie.org/2008/11/refactoring-pastie-lessons-learned.html the Ultraviolet gem (http://ultraviolet.rubyforge.org/) is used.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow