Copy back to clipboard without line number

Oct 7, 2009 at 7:24 PM


I've encountered a reversed copy&paste issue. As a user who uses blog i really dislike posts where the code example contains line number.
This is because while tring to copy from post back to visual studio the line numbers are copied also.
I thought about a solution but didn't find such one:

1. Is it possible to create 2 div. one for the line numbers and second for the code itself
2. Adding "copy to clipboard" button. (i dont know if supported by rss).

Do you know such a solution?


Oct 8, 2009 at 8:26 AM

Hi Eran,

Thanks for the suggestion. I had thought about doing just that and started doing some implementation in that direction but it proved to be a bit involved so I abandoned it at the time. I may visit it again. However, there's the possibility to launch a secondary window where there's no formatting from which the user can copy without problems. I have done that in my own blog at some point and I will have to go back to the JavaScript I put together to do it. But I don't see why this could not be made part of the plug in.