Thread: Code tags

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    UK
    Posts
    20
    Rep Power
    0

    Code tags


    How do I use code tags to post?

    Is it simply a matter of formatting my text with tags, a bit like HTML, or do I need some kind of external program or utilty?
  2. #2
  3. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    244

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  4. #3
  5. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,145
    Rep Power
    2222

    Re: Code tags


    Originally posted by Puffer
    Is it simply a matter of formatting my text with tags, a bit like HTML, ...
    Bingo! Use square brackets ( [] ) instead of HTML's "angle brackets" ( <> ) and use the tag name "code".

    Some other tag names that work here are:
    i -- for italicize
    b -- for bold
    u -- for underline
    url -- for a URL
    quote -- for a quotation (does not preserve indentation)
    php -- like code, but also throws in syntax highlighting.

    Find a post that uses code tags and click on its "quote" button. Within that quote you will see a number of tags being used, including the code tags. Quit out of the reply by back-arrowing.
  6. #4
  7. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,109
    Rep Power
    1802
    You can use the tool bar buttons above the post edit box. # inserts code tags, PHP does something similar but colour syntax highlights the code.

    Hover over these buttons to see what the various tags do.

    Clifford

IMN logo majestic logo threadwatch logo seochat tools logo