Client-side Syntax Highlighter for Rails
Just published my wrapper around SyntaxHighlighter2 (git mirror).
script/plugin install git://github.com/antono/sh2.git rake -T sh2 rake sh2:install
Add following intro head section of your layout:
include_syntax_highlighter_assets(:themes => :midnight, :brushes => :all)
And this at the bottom of page:
sh2_highlight_code
This code:
1000.times { puts 'Руби Руби Руби Руби' }
become this:
1000.times { puts 'Руби Руби Руби Руби' }