Edgewall Software
Modify

Opened 14 years ago

Closed 11 years ago

#2528 closed defect (duplicate)

Code Selection: Line Numbers in CodeBrowser (CopyPaste Problem)

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: version control/browser Version: 0.9.2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

Hello,

Maybe you already fixed this. I am using 0.92.

This is very ugly if want to copy/paste code from the browser. The selection is always code & linenumbers and not only code.

—> look at koders.com

they have only 2 seperate <td>

-one for linenumbers -one for code -and the code newlines/linenumber newline made with <br> not <td>

like this you are able to copy paste code with or without linenumbers.

Cheers

Attachments (0)

Change History (4)

comment:1 by Matthew Good, 14 years ago

Resolution: wontfix
Status: newclosed

The line numbering is done in the table rows so that long lines can overflow and extend the row while keeping the line numbers properly aligned. The plain text view can be used to select code without the line numbers.

comment:2 by progrium@…, 12 years ago

I've been getting some requests for this as well since it feels completely unintuitive to go to plain text view to copy and paste. There's a trick that friends at userscripts.org are using that I'll look into for Trac that lets you select the code with line numbers and not let the numbers get into what you copy.

comment:3 by Christian Boos, 12 years ago

Component: generalbrowser
Milestone: 0.11.1
Resolution: wontfix
Status: closedreopened

I wonder also if we wouldn't be able to gain some speed here. Currently, looking at > 100Kbytes files is a bit of a pain.

I think it's worth experimenting the alternatives a bit.

comment:4 by Christian Boos, 11 years ago

Milestone: 0.11.2
Resolution: duplicate
Status: reopenedclosed

See #7055, when the line number column is hidden, the code can be easily copied without the line numbers.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.