Create a box to share code???

Discussion in 'HTML & Website Design' started by Emperor, Nov 5, 2006.

  1. #1
    How do I create one of those boxes on my site to share code? The box contains the code that people can past on their site. If I wanted to share code, image link, etc..
     
    Emperor, Nov 5, 2006 IP
  2. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #2
    <xmp>
    Code you wish to share.
    </xmp>
    Code (markup):
     
    dp-user-1, Nov 5, 2006 IP
  3. ThisGoatStarves

    ThisGoatStarves Peon

    Messages:
    361
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If your site must be compliant with web standards I'd recommend using

    <textarea>
    Code here
    </textarea>
     
    ThisGoatStarves, Nov 5, 2006 IP
  4. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #4
    I figured <xmp> would be out-dated. Found it a few years ago.
     
    dp-user-1, Nov 6, 2006 IP
  5. ThisGoatStarves

    ThisGoatStarves Peon

    Messages:
    361
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'd never heard about it before until today, had to Google it!
     
    ThisGoatStarves, Nov 6, 2006 IP