In rouge `~> 1.3.0` you can override `#rouge_formatter` in the redcarpet plugin to return a formatter with custom behavior, like `Rouge::Formatters::HTML.new(:wrap => false, :line_numbers => true)` for example.