code tags

This is a discussion on code tags within the A Brief History of Cprogramming.com forums, part of the Community Boards category; hey I just noticed that smileys show up inside of the code tags, isnt the purpose of the code tags ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    133

    code tags

    hey I just noticed that smileys show up inside of the code tags, isnt the purpose of the code tags to not have smileys.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    The purpose of code tags is to make the code more readable (A hiearchical structure, which can't be done without them). But I agree that smileys should be disabled in code tags , makes some problems especially with classes ( MyClass :: Doh --> MyClass:oh )

    if(A==1)
    {
    if(B==2)
    {
    if(C==3)
    {
    printf("Hahaha!!!");
    }
    }
    }
    Code:
    if(A==1)
    {
       if(B==2)
       {
          if(C==3)
          {
             printf("Hahaha!!!");
          }
       }
    }
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    B26354 Deckard's Avatar
    Join Date
    Jan 2002
    Posts
    633
    You can always check "Disable Smilies in This Post" at the bottom of the page when posting a message.
    Jason Deckard

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by Deckard
    You can always check "Disable Smilies in This Post" at the bottom of the page when posting a message.
    And what if you want to smile outside the code tags?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  5. #5
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Then use the ASCII character code for one of the :'s.

    Like I can do for code tags!
    &#91code]
    Hi;
    &#91/code]

    [code]
    Hi;
    [/code]

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    [CODE]
    hmmm....
    [/CODE]

    [EDIT] It worked [/EDIT]
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code tags bug
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 06-05-2006, 09:25 PM
  2. don't know to use code tags
    By giovs in forum C Programming
    Replies: 1
    Last Post: 10-12-2004, 07:51 AM
  3. << !! Posting Code? Read this First !! >>
    By kermi3 in forum Windows Programming
    Replies: 0
    Last Post: 10-14-2002, 02:29 PM
  4. about code tags
    By ygfperson in forum C++ Programming
    Replies: 9
    Last Post: 04-06-2002, 05:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21