|
-
Jun 2nd, 2001, 05:05 AM
#1
Thread Starter
Conquistador
Just testing (no peeking)
just testing my color coding prog
Code:
Dim BlueStuff As String, BSC As String
Private Sub cmdconvert_Click()
BlueStuff = "Byte,Currency,Date,String,Object,Single,Double,Integer,Long,Boolean,Variant,While,Wend,With,Step,Do,Loop,If,Then,Else,New,Exit,True,False,Dim,Sub,Function,Property,Let,Get,As,Declare,End,For,To,Next,Public,Private,Global,ReDim,Const,Lib,Alias,Event,Property,Get,Let,On,Error,Resume,Goto,Type,CBool,CStr,CByte,CCur,CDate,CDbl,CDec,CInt,CLng,CSng,CVar,And"
BSC = "[color=" & Chr(34) & "#00007F" & Chr(34) & "]"
'Split all in the text box into separate lines
Dim strList As Variant, strList2 As Variant, tagClosed As Boolean
tagClosed = True
strList = Split(txtVB, vbCrLf)
txtVB = "
Code:
"
For Each varlist In strList
strList2 = Split(varlist, " ")
For Each othervar In strList2
If InStr(BlueStuff, othervar) <> 0 And othervar <> " " And othervar <> "i" Then
If tagClosed Then
txtVB = txtVB & BSC & othervar & " "
tagClosed = False
Else
txtVB = txtVB & othervar & " "
tagClosed = False
End If
Else
If tagClosed Then
txtVB = txtVB & othervar & " "
tagClosed = True
Else
txtVB = txtVB & "[/color] " & othervar & " "
tagClosed = True
End If
End If
Next
txtVB = txtVB & vbCrLf
Next
If tagClosed = False Then txtVB = txtVB & "[/color]"
txtVB = txtVB & vbCrLf & "
"
End Sub
i told you not to peek
-
Jun 3rd, 2001, 12:43 AM
#2
Addicted Member
I'm a bad boy i peeked
-
Jun 3rd, 2001, 01:10 AM
#3
da_silvy, how did you get the chinese text?
-
Jun 3rd, 2001, 01:27 AM
#4
Hehe, your late, John has color coding back .
VB Code:
Dim BlueStuff As String, BSC As String
Private Sub cmdconvert_Click()
BlueStuff = " Byte,Currency,Date,String,Object,Single,Double,Integer,Long,Boolean,Variant,While,Wend,With,Step,Do,
Loop,If,Then,Else,New,Exit,True,False,Dim,Sub,Function,Property,Let,Get,As,Declare,End,For,To,Next,P
ublic,Private,Global,ReDim,Const,Lib,Alias,Event,Property,Get,Let,On,Error,Resume,Goto,Type,CBool,CS
tr,CByte,CCur,CDate,CDbl,CDec,CInt,CLng,CSng,CVar,And"
BSC = "[color=" & Chr(34) & "#00007F" & Chr(34) & "]"
'Split all in the text box into separate lines
Dim strList As Variant, strList2 As Variant, tagClosed As Boolean
tagClosed = True
strList = Split(txtVB, vbCrLf)
txtVB = "[code]"
For Each varlist In strList
strList2 = Split(varlist, " ")
For Each othervar In strList2
If InStr(BlueStuff, othervar) <> 0 And othervar <> " " And othervar <> "i" Then
If tagClosed Then
txtVB = txtVB & BSC & othervar & " "
tagClosed = False
Else
txtVB = txtVB & othervar & " "
tagClosed = False
End If
Else
If tagClosed Then
txtVB = txtVB & othervar & " "
tagClosed = True
Else
txtVB = txtVB & "[/color] " & othervar & " "
tagClosed = True
End If
End If
Next
txtVB = txtVB & vbCrLf
Next
If tagClosed = False Then txtVB = txtVB & "[/color]"
txtVB = txtVB & vbCrLf & "
-
Jun 3rd, 2001, 03:26 AM
#5
Thread Starter
Conquistador
yeah, oh well
i wrote that for converting to html, but only changed it a little for this site...
-
Jun 3rd, 2001, 05:06 AM
#6
Thread Starter
Conquistador
yeah
i swear i am going insane or these forums are dodgy
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
|