Click to See Complete Forum and Search --> : cut and paste from forum post
bezaman
Mar 30th, 2010, 01:21 PM
when someone posts vb.net code with the line numbers, how can i cut and paste this code into my program without having to do it line by line?
Pradeep1210
Mar 30th, 2010, 01:25 PM
The workaround I usually do is:
1. Copy the code and paste in Ms-Word
2. Select all text and Click the Bullets & Numbering button to remove the numbers.
3. Copy code and paste in Visual Studio.
Pradeep1210
Mar 30th, 2010, 01:29 PM
The other thing I find people often speaking is that it works OK in Opera browser. i.e. Text is not copied with bullets/line numbers.
(Though don't personally use Opera, so I can't be 100% sure. Maybe you could give it a try if it suits you.)
cicatrix
Mar 30th, 2010, 01:35 PM
Google Chrome does not copy and paste line numbers. I didn't even know that it can be otherwise :lol:
si_the_geek
Mar 30th, 2010, 01:36 PM
Thread moved to 'Forum Feedback', which is where questions about site usage etc belong
A much simpler method is to press "Quote", as that shows the code without the tags working on it.
The other thing I find people often speaking is that it works OK in Opera browser. i.e. Text is not copied with bullets/line numbers.Apparently it is just FireFox that has the issue, and IE is fine too.
Previously it was all browsers, but an update of the tags fixed it for most of them.
JuggaloBrotha
Mar 30th, 2010, 01:44 PM
There used to be a VS 2005 plugin that you'd use to paste the vbcode tag code and it'd paste it without the line numbers, but that plug bit the dust or something a few years ago.
Because of the line numbers, I still post code using the tags instead of the tags
si_the_geek
Mar 30th, 2010, 01:53 PM
Because of the line numbers, I still post code using the tags instead of the tagsYou certainly aren't the only one - lots of us do that :(
Pradeep1210
Mar 30th, 2010, 02:28 PM
You certainly aren't the only one - lots of us do that :(
Since you said it now works on all major webbrowsers except firefox, I wonder how much effort would it take to develop a plugin for Firefox that fixes this and add it to our codebank. :)
si_the_geek
Mar 30th, 2010, 02:40 PM
Apparently it shouldn't be too hard to alter the code highlighter so it works for all browsers... the problem is that most people here do VB etc rather than the web based language(s) that it uses, and of course any changes would have to be checked by the Admins who deal with it.
A Firefox plugin would be a good work-around for long-term members, but it wouldn't be great for new members etc.
gep13
Mar 30th, 2010, 03:46 PM
Hey,
.paul.'s Addin is fairly recent, and from what I understand, will do exactly what the OP is after. Have a look at it here:
http://www.vbforums.com/showthread.php?t=543154
Hope that helps!!
Gary
Harsh Gupta
Apr 1st, 2010, 01:29 AM
Or you first click on Quote button (at lower right end) of post, and from the text editor of following page, you can copy the code from quoted text. Just make sure you don't hit the submit button by any chance.
JuggaloBrotha
Apr 1st, 2010, 06:46 AM
I wouldn't mind a FF plugin that just does it's thing automatically when something's copied to the clipboard.
gep13
Apr 1st, 2010, 07:03 AM
Hey,
That is essentially what the addin for Visual Studio provides, apart from the work is done on the paste, rather than the copy.
Gary
JuggaloBrotha
Apr 1st, 2010, 08:45 AM
Hey,
That is essentially what the addin for Visual Studio provides, apart from the work is done on the paste, rather than the copy.
GaryYea, except that I use 3 versions of VS.Net (soon to be a 4th) and I even copy and paste code from the HighLight tags into NetBeans (Java editor) so I'd have to have 5 versions of the extension, when all I run is 1 version of FF so a FF add-on would make much more sense (to me at least).
So I could go for a FF add-on
gep13
Apr 1st, 2010, 09:05 AM
Ah, I see what you mean, fair point.
Gary
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.