Project

General

Profile

Actions

Feature #9613

closed

Line numbers copied in repository file view

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
2011-11-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

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

Is duplicate of Redmine - Feature #3382: Ability to select only source code without line numbersClosed2009-05-18

Actions
Actions #1

Updated by Alex Shulgin about 13 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.

Actions #2

Updated by Jean-Philippe Lang about 13 years ago

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

See #3382.

Actions

Also available in: Atom PDF