|
-
Mar 30th, 2010, 01:21 PM
#1
Thread Starter
Fanatic Member
cut and paste from forum post
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?
-
Mar 30th, 2010, 01:25 PM
#2
Re: cut and paste from forum post
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.
-
Mar 30th, 2010, 01:29 PM
#3
Re: cut and paste from forum post
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.)
-
Mar 30th, 2010, 01:35 PM
#4
Re: cut and paste from forum post
Google Chrome does not copy and paste line numbers. I didn't even know that it can be otherwise
-
Mar 30th, 2010, 01:36 PM
#5
Re: cut and paste from forum post
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.
-
Mar 30th, 2010, 01:44 PM
#6
Re: cut and paste from forum post
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 [code] [/code] tags instead of the [highlight=vb] [/highlight] tags
-
Mar 30th, 2010, 01:53 PM
#7
Re: cut and paste from forum post
 Originally Posted by JuggaloBrotha
Because of the line numbers, I still post code using the [code] [/code] tags instead of the [highlight=vb] [/highlight] tags
You certainly aren't the only one - lots of us do that
-
Mar 30th, 2010, 02:28 PM
#8
Re: cut and paste from forum post
 Originally Posted by si_the_geek
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.
-
Mar 30th, 2010, 02:40 PM
#9
Re: cut and paste from forum post
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.
-
Mar 30th, 2010, 03:46 PM
#10
Re: cut and paste from forum post
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
-
Apr 1st, 2010, 01:29 AM
#11
Re: cut and paste from forum post
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.
-
Apr 1st, 2010, 06:46 AM
#12
Re: cut and paste from forum post
I wouldn't mind a FF plugin that just does it's thing automatically when something's copied to the clipboard.
-
Apr 1st, 2010, 07:03 AM
#13
Re: cut and paste from forum post
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
-
Apr 1st, 2010, 08:45 AM
#14
Re: cut and paste from forum post
 Originally Posted by gep13
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
Yea, 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
-
Apr 1st, 2010, 09:05 AM
#15
Re: cut and paste from forum post
Ah, I see what you mean, fair point.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|