rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Line spans

Open ronalchn opened this issue 12 years ago • 3 comments

Wow, just saw this library after putting pygments.rb into my app.

Support for wrapping each line with a span would be great. Because I let code wrap, the tableized line numbering doesn't actually work well. So I put use the css ::before pseudo-element to insert line numbers.

Apart from this, it could be a drop-in replacement, and it would allow me to fix the annoying <pre><code></code></pre> that pygments doesn't do, and which I can't fix because it's in python.

ronalchn avatar Dec 08 '13 11:12 ronalchn

Hm, yeah, the tableized line numbers won't work with line wrapping, which is why it's usually disabled by default. I personally always manually line-wrap my code to 80-chars, but if you've got a solution that makes it better for line wrapping, I'm happy to take a look at a pull request :)

jneen avatar Dec 08 '13 19:12 jneen

Another user just switched from pygments and looking for the same. The Rouge HTML output with the tables instead of the spans makes that the switch from Pygments to Rouge is not as straightforward as advertised.

jrfnl avatar Feb 11 '16 12:02 jrfnl

This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days. If you would like this issue to remain open, please reply and let us know if the issue is still reproducible.

stale[bot] avatar Jun 19 '19 17:06 stale[bot]