|
-
Sep 25th, 2007, 12:35 PM
#1
Thread Starter
Supreme User
Need Syntax Keywords
Could you please post keywords for various programming languages?
My syntax highlighter is now almost done, it is in a working state (again after a few hours of work). Ive got delphi keywords which are colored but the more languages available the better. like so:
Delphi Keywords (if you see something i missed please let me know)
Code:
and
array
begin
case
const
div
do
else
end
except
finally
for
function
if
in
is
mod
nil
not
of
or
procedure
program
repeat
shl
shr
string
then
to
try
until
uses
var
while
with
xor
looking for Classic VB, C#, CPP, Game Maker, HTML, PHP, SQL, VB.NET and any others too cheers
Last edited by Madboy; Sep 25th, 2007 at 12:39 PM.
-
Sep 25th, 2007, 12:38 PM
#2
Re: Need Syntax Keywords
Classic VB
Abs
Additem
AddressOf
And
AppendChunk
As
Atn
Base
BeginTrans
Binary
Boolean
ByRef
Byte
ByVal
Call
Case
CBool
CByte
CCur
CDate
CDbl
CDec
Chr
Cint
CLng
Close
Const
CSng
Cstr
Currency
Cvar
Date
Debug
Declare
Dim
Do
Double
Else
ElseIf
Empty
End
EndTrans
Enum
Erase
Error
Event
Exit
Explicit
False
For
FormatCurrency
FormatDateTime
FormatNumber
Friend
Function
Get
GetChunk
Global
Goto
If
In
Input
Integer
Is
IsArray
IsDate
IsEmpty
IsNull
IsNumeric
Kill
Let
Lib
Like
Long
Loop
Me
MonthName
Name
New
Next
Not
Nothing
Object
On
Open
Option
Optional
Or
ParamArray
Print
Private
Property
Public
Put
Removeitem
Replace
Resume
Select
Set
Single
Split
Static
Stop
StrComp
StrConv
String
Sub
Then
To
True
Type
TypeOf
Unload
Until
Value
Variant
Wend
While
With
WithEvents
Write
Xor
-
Sep 25th, 2007, 04:28 PM
#3
Thread Starter
Supreme User
Re: Need Syntax Keywords
Thanks, also i should of mentioned what basic colors are they using if its not much trouble?
such as:
comment = green
identifier = blue..etc
Cheers
-
Sep 25th, 2007, 05:13 PM
#4
Thread Starter
Supreme User
Re: Need Syntax Keywords
And i got someone to give me these (please confirm and add if needed)
CPP
Code:
bool
break
case
char
continue
define
default
delete
do
double
else
except
finally
float
for
if
include
iostream
int
is
new
return
string
switch
try
variant
void
while
Javascript
Code:
break
case
continue
default
delete
do
else
except
finally
for
function
import
i
is
if
new
return
switch
try
var
while
with
So i now have ClassicVB,CPP,Delphi and Javascript. i now require keywords for:
C#,HTML,Game Maker,PHP,SQL,VB.NET and any other languages you wish adding. The highlighter is pretty much done ive just been messing around and trying to add too many features to it then i think it needs. ive got the sidebar (gutter) done, but missing some features for it, and included a statusbar to it (though very basic, shows line and row number). i messed it up alot earlier doing 2 much 2 it but its coming on good for now. i will back it up now and keep it simple for time being.
Cheers, especially Hack credit will be given where due
-
Sep 26th, 2007, 10:07 AM
#5
Re: Need Syntax Keywords
 Originally Posted by Madboy
Thanks, also i should of mentioned what basic colors are they using if its not much trouble?
such as:
comment = green
identifier = blue..etc
Cheers 
You are correct. For ClassicVB, comments are green and reserved words are Blue.
-
Sep 26th, 2007, 10:09 AM
#6
Re: Need Syntax Keywords
Link in my signature for reserved keywords in SQL.
-
Sep 26th, 2007, 10:40 AM
#7
-
Sep 26th, 2007, 03:42 PM
#8
Thread Starter
Supreme User
Re: Need Syntax Keywords
thats great thanks
also how are the keywords commented out? i know delphi is like:
//this is commented out
{and
so
are all these}
and if i remember VB is "blah", its no biggy at the mo like
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
|