What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » DZ - [code] Improvement Suggestion...

DZ - [code] Improvement Suggestion...
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. DZ - [code] Improvement Suggestion...
I know this might be usless to some people but to others it would be a really good idea when posting source code.

With the current [code][/code] everything shows up black as it should. But with Visual Basic programming and some others certain key words are colour coded. Now DZ could you by any chance add the ability to type [code=vb] And colour code the text accordingly.

I think this:

code:
'This is just an example for calling the oMessenger object passed through the Initialize Function into a Variable.
'Make sure to set a reference to the MessengerAPI Type Library


Public WithEvents MessengerAPI As MessengerAPI.Messenger

Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
    Initialize = True
    Set MessengerAPI = oMessenger
End Function



looks better then this:
code:
'This is just an example for calling the oMessenger object passed through the Initialize Function into a Variable.
'Make sure to set a reference to the MessengerAPI Type Library

Public WithEvents MessengerAPI As MessengerAPI.Messenger

Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
    Initialize = True
    Set MessengerAPI = oMessenger
End Function

This post was edited on 04-15-2005 at 05:56 PM by matty.
04-15-2005 05:52 PM
Profile E-Mail PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: DZ - [code] Improvement Suggestion...
It does look nicer, but I don't know VB or have any VB-coloring PHP functions... :p
04-15-2005 05:56 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: DZ - [code] Improvement Suggestion...
quote:
Originally posted by WDZ
It does look nicer, but I don't know VB or have any VB-coloring PHP functions... :p
If I could provide you with the key words and the colours for each could you do it?

code:

Access
Alias
Append
And
As
Base
Binary
Boolean
Byte
ByVal
Call
Case
CBool
CByte
CCur
CDate
CDbl
CDec
CInt
CLng
Close
Compare
Const
CSng
CStr
Currency
CVar
CVErr
Decimal
Declare
DefBool
DefByte
DefCur
DefDate
DefDbl
DefDec
DefInt
DefLng
DefObj
DefSng
DefStr
DefVar
Dim
Do
Double
Each
Else
ElseIf
End
Enum
Eqv
Erase
Error
Exit
Explicit
False
For
Function
Get
Global
GoSub
GoTo
If
IIf
Imp
In
Input
Input
Integer
Is
IsNumeric
LBound
Left
Let
Lib
Like
Line
Lock
Long
Loop
LSet
Name
New
Next
Not
Object
Open
Option
On
Or
Output
Preserve
Print
Private
Property
Public
Put
Random
Read
ReDim
Resume
Return
Right
RSet
Seek
Select
Set
Single
Spc
Static
String
Stop
Sub
Tab
Then
True
UBound
Variant
While
Wend
With
Write


'Comments start with a ' and are green like this. A comment will continue until a new line is created.


If I am missing any VB Key Words please post the ones I am. I am at work so I don't have VB but is LCase and UCase keywords?

This post was edited on 04-15-2005 at 07:11 PM by matty.
04-15-2005 06:14 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: DZ - [code] Improvement Suggestion...
can you use Text_Highlighter
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
04-15-2005 07:14 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: DZ - [code] Improvement Suggestion...
quote:
Originally posted by Dempsey
can you use Text_Highlighter
VB isn't included hahahah
04-15-2005 07:29 PM
Profile E-Mail PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: DZ - [code] Improvement Suggestion...
quote:
Originally posted by Matty
If I could provide you with the key words and the colours for each could you do it?
How do I know the words aren't inside of strings or something like that? Just replacing "keyword" with "keyword" would be kinda crappy, but I suppose anything more advanced would be too advanced... :p
04-15-2005 07:34 PM
Profile PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: DZ - [code] Improvement Suggestion...
GeSHi :)
04-15-2005 07:35 PM
Profile PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: DZ - [code] Improvement Suggestion...
quote:
Originally posted by Lee Jeffery
GeSHi :)
Hmm... compatible with PHPBB? I might be able to make it work with MyBB then... I'll read that page thoroughly later... looks interesting.
04-15-2005 07:48 PM
Profile PM Web Find Quote Report
TheGeek
Full Member
***

Avatar
Excuse my geekyness.

Posts: 179
Reputation: 15
33 / Male / –
Joined: Feb 2005
RE: DZ - [code] Improvement Suggestion...
It would be nice if you added the most common languages. (a)
[Image: 468x60banner.png]
04-16-2005 04:08 PM
Profile E-Mail PM Web Find Quote Report
Ahmad
Senior Member
****

Avatar
@hmad

Posts: 526
Reputation: 27
40 / Male / –
Joined: Dec 2004
RE: DZ - [code] Improvement Suggestion...
ask www.vbcity.com to share their code
04-16-2005 04:34 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On