Nice neat code posts


Results 1 to 40 of 40

Threaded View

  1. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Nice neat code posts

    Any decent code editor allows you to convert TABs to SPACE, MCS do a decent job at this, MPLAB too.

    However, seems from time to any ANY vBulletin board, and some other may screw things up a little bit.

    Bellow, two piece of useless code, using the same tab indentation,
    in Notepad
    Code:
        VarA    VAR    BYTE
    
    LABEL1:
        IF SOMETHING THEN
            GOSUB LABEL1
            DO USELESS THING
            ENDIF
    In MCSP
    Code:
            VarA    VAR    BYTE
    
    LABEL1:
            IF SOMETHING THEN
                    GOSUB LABEL1
                    DO USELESS THING
                    ENDIF
    MCSP being the one who keep MY personnal indentation. But yeah, from time to time some line WILL be screwed up.
    Last edited by mister_e; - 14th September 2011 at 04:22.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts