Feature #9613

Line numbers copied in repository file view

Added by Ivan Cenov about 10 years ago. Updated about 10 years ago.

Status:ClosedStart date:2011-11-20
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


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.

Related issues

Duplicates Redmine - Feature #3382: Ability to select only source code without line numbers New 2009-05-18


#1 Updated by Alex Shulgin about 10 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.

#2 Updated by Jean-Philippe Lang about 10 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

See #3382.

Also available in: Atom PDF