Rouge is a pure Ruby syntax highlighter. It can highlight over 200 different languages, and output HTML or ANSI 256-color text. Its HTML output is compatible with stylesheets designed for Pygments.
...
gem "rouge"
...
bundle
module ApplicationHelper
def render_content_from(page)
erb_processed_content = render(inline: page.content, layout: false)
Kramdown::Document.new(erb_processed_content, input: "GFM", syntax_highlighter: :rouge).to_html.html_safe
end
end
rougify style github > app/assets/stylesheets/rouge.css
Commit: Rouge