Line numbers copied in repository file view
It is normally one to copy parts of the files contents when the files are displayed in the repository browser. Unfortunately, the line numbers that are in the left are copied too.
My proposition is to add new link next to the "View" link, named "Raw view" or "View without line numbers" and this link to deliver files without the line numbers. If syntax highlighting remain it would be the best.
#1 Updated by Alex Shulgin over 8 years ago
Well, I would vote for using
:line_numbers => :table HTML option for the highlighter (if it's the default, CodeRay), like my Pastebin plugin does: https://github.com/commandprompt/redmine_pastebin/blob/master/app/helpers/pastes_helper.rb#L73
It would be also helpful if this could be abstracted by the Redmine::SyntaxHighligthing module, to avoid the hardcoding.