Results 1 to 2 of 2

Thread: class cCPPCODE

  1. #1

    Thread Starter
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402

    class cCPPCODE

    I think we should have a few more code tags, most notably a c code tag, like a [ccode] that would produce:

    Code:
    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR command, int cmdShow)
    {
        HWND hwnd;
        MSG msg;
        WNDCLASSEX wndc;
    
        //wndc.blah = blah
    
        //I'm just going to skip the rest because you get the idea
    }
    or maybe [htmlcode]:

    Code:
    <html>
    <head>
    </head>
    <body>
    <input type="button" name="hh" value="ClickME!" onclick="alert('You Clicked Me!')">
    </body></html>


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It would only be possible to have the core keywords coloured, as things like HINSTANCE rely on it interpreting whatever headers you've included...

    Although it's a nice idea.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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