|
-
Jun 2nd, 2001, 08:05 AM
#1
Thread Starter
Fanatic Member
[Highlight=VB] - colour coding returns!
VB Code:
MsgBox "Hello"
If This=vbCool Then
Debug.Print "Yeah!"
End If
Enjoy!
John
-
Jun 2nd, 2001, 08:30 AM
#2
Frenzied Member
-
Jun 2nd, 2001, 09:52 AM
#3
Monday Morning Lunatic
Is there no end to this genius? 
Now for C++
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 2nd, 2001, 10:17 AM
#4
VB Code:
Private Sub Form_Load()
Select Case Command$
Case "/John"
Msgbox "THE BEST!"
Case "/James"
Msgbox "THE BEST!"
Case "/Owner"
Msgbox "The one and only, John, of course ;)"
Case "/Administrator"
Msgbox "John and James of course ;)"
Case "/Senior Editor"
Msgbox "Karl Moore :)"
End Select
End Sub
VB Code:
If
Then
Option
Optional
Explicit
Option Explicit
And
Or
End If
End Sub
Private
Sub
Remove
For
Next
Do
Loop
Array
InStr
InStrRev
Replace
Randomize
Timer
Split
Join
Hrmmm...Sub, Split, Join, InStrRev, Replace, Optional not colored? 
John, "Sub" should really color itself .
Test Color in VBCode.
VB Code:
[b][[/b]color=#0000a0[b]][/b][color=#0000a0]Optional[/color][b][[/b]/color[b]][/b]
That works
-
Jun 2nd, 2001, 10:28 AM
#5
Look at that John, adds in \'s .
-
Jun 2nd, 2001, 10:32 AM
#6
Monday Morning Lunatic
VB Code:
Remove "c:\win386.swp"
'Remove sFile
Rem Here is a comment
' Here is a multi _
line comment
Oh, and can you take off the initial newline after the tag's been opened? It makes it really unreadable getting round it
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 2nd, 2001, 11:00 AM
#7
Thread Starter
Fanatic Member
Fixed everything so far.
But no multiline stuff - that's asking a bit too much I think 
John
-
Jun 2nd, 2001, 11:05 AM
#8
Monday Morning Lunatic
Okay, no problem I don't even think anyone uses them coz it looks better to just stick a ' at the beginning of each line
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 2nd, 2001, 11:27 AM
#9
-
Jun 2nd, 2001, 11:29 AM
#10
Hehe, good job John! You made it take the first comment (') into consideration and ignore all after it!
-
Jun 2nd, 2001, 11:31 AM
#11
VB Code:
Private Sub Form_Load()
[color=green]'code[/color]
End Sub
Just gotta fix that "End Sub" John, it colors the first for "Private Sub", but not the last one .
-
Jun 2nd, 2001, 11:46 AM
#12
Thread Starter
Fanatic Member
Just add a space or newline before the closing [/Highlight] tag.
John
-
Jun 2nd, 2001, 01:34 PM
#13
Good Ol' Platypus
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jun 2nd, 2001, 01:46 PM
#14
VB Code:
'no space
Private Sub
End Sub
VB Code:
'space
Private Sub
End Sub
VB Code:
'newline
Private Sub
End Sub
-
Jun 4th, 2001, 10:21 AM
#15
VB Code:
For x = 1 to 10 ' this is a "test"
'everyone else got to test it...I felt left out!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jun 4th, 2001, 10:24 AM
#16
hhmmmm
had to make sure it was Capital letter!
VB Code:
for x = 1 to 10
For x = 1 to 10
private
Private
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jun 4th, 2001, 12:17 PM
#17
Thread Starter
Fanatic Member
Copy and paste from VB and you'll be fine then 
John
-
Jun 4th, 2001, 12:27 PM
#18
Monday Morning Lunatic
What's VB? Does anyone still use that? 
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 4th, 2001, 01:25 PM
#19
-
Jun 4th, 2001, 01:32 PM
#20
Monday Morning Lunatic
Sorry, after so long on the forums it's inextricably entwined with the "smut" department
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|