Shoutbox

DZ - [code] Improvement Suggestion... - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: DZ - [code] Improvement Suggestion... (/showthread.php?tid=42880)

DZ - [code] Improvement Suggestion... by matty on 04-15-2005 at 05:52 PM

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

RE: DZ - [code] Improvement Suggestion... by WDZ on 04-15-2005 at 05:56 PM

It does look nicer, but I don't know VB or have any VB-coloring PHP functions... :p


RE: DZ - [code] Improvement Suggestion... by matty on 04-15-2005 at 06:14 PM

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?
RE: DZ - [code] Improvement Suggestion... by Dempsey on 04-15-2005 at 07:14 PM

can you use Text_Highlighter


RE: DZ - [code] Improvement Suggestion... by matty on 04-15-2005 at 07:29 PM

quote:
Originally posted by Dempsey
can you use Text_Highlighter
VB isn't included hahahah
RE: DZ - [code] Improvement Suggestion... by WDZ on 04-15-2005 at 07:34 PM

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
RE: DZ - [code] Improvement Suggestion... by Eljay on 04-15-2005 at 07:35 PM

GeSHi :)


RE: DZ - [code] Improvement Suggestion... by WDZ on 04-15-2005 at 07:48 PM

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.
RE: DZ - [code] Improvement Suggestion... by TheGeek on 04-16-2005 at 04:08 PM

It would be nice if you added the most common languages. (a)


RE: DZ - [code] Improvement Suggestion... by Ahmad on 04-16-2005 at 04:34 PM

ask www.vbcity.com to share their code