Results 1 to 8 of 8

Thread: Need Syntax Keywords

  1. #1

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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

  3. #3

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    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

  4. #4

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    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

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need Syntax Keywords

    Quote 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.

  6. #6
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Need Syntax Keywords

    Link in my signature for reserved keywords in SQL.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need Syntax Keywords


  8. #8

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    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
  •  



Click Here to Expand Forum to Full Width