[RESOLVED] Really dumb VBcode box!
Hi,
I'm getting very irritated at the VBcode box in this forum.
Let's say I have a box like this with some random code:
vb Code:
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
Dim IntSelStart As Integer
IntSelStart = Text1.SelStart
Text1.Text = Replace(Text1.Text, "b", "q")
Text1.SelStart = IntSelStart
End Sub
Then if I want to copy this, and use in my project, I select the whole text and press ctrl+c... however, when i paste it into vb:
vb Code:
1.
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
2.
Dim IntSelStart As Integer
3.
IntSelStart = Text1.SelStart
4.
5.
Text1.Text = Replace(Text1.Text, "b", "q")
6.
Text1.SelStart = IntSelStart
7.
End Sub
It adds numbers to every two lines, which I have to remove manually, line by line... And if it was a big chunk of code I copied, this would take a while.
So I wonder, can't anybody remove the stupid numbers???
Re: Really dumb VBcode box!
Seems like that might be what Martin Liss has addressed already.
I don't know for sure though.
So, you C&P alot of the code here?
:wave:
-Lou
Re: Really dumb VBcode box!
This link gives you a couple of solutions.
Re: Really dumb VBcode box!
That talks about the runinline issue.
Does that also solve the numbering isue?
[edit]
"...remove the numbering..."
[/edit]
Ahhh, there you go!
:)
Re: Really dumb VBcode box!
You can use either the Copy/Paste VB Code or the Paste VB Code Add-In links in my signature to solve the problem.
Re: Really dumb VBcode box!
Just for those of you who hate using the Highlight tags here is a link i got from Penagate :D it is a wonderful application that allows you to have color syntax and use the Code tags instead ;)
Coloring your code in vBulletin Posts
Re: Really dumb VBcode box!
Okay, It's really a pity that those old [VBCODE] tags disappeared...
And I don't really want to use MartinLiss's Cpoy/Paste add-in as I hate having unnessesary processes running in the background... I'll just copy it to wordpad first, didn't know one could do that.
Re: Really dumb VBcode box!
Quote:
Originally Posted by henzino2
Okay, It's really a pity that those old [VBCODE] tags disappeared...
And I don't really want to use MartinLiss's Cpoy/Paste add-in as I hate having unnessesary processes running in the background... I'll just copy it to wordpad first, didn't know one could do that.
There is no "unnessesary processes running in the background". My two apps briefly use Word to process the copied data and then they close it. That's similar to (but easier) than you manually using wordpad.
Re: Really dumb VBcode box!
Quote:
Originally Posted by henzino2
Okay, It's really a pity that those old [VBCODE] tags disappeared...
And I don't really want to use MartinLiss's Cpoy/Paste add-in as I hate having unnessesary processes running in the background... I'll just copy it to wordpad first, didn't know one could do that.
Easiest of all is to hit the "Reply with Quote" button and copy the code you want from the reply window.
Re: [RESOLVED] Really dumb VBcode box!
Re: [RESOLVED] Really dumb VBcode box!
Good tip there Ellis :thumb: