How do I display an html code in a scroll box for people to copy and paste?

I tried searching and trying but cant figure it out. I want to put a html code in my scroll box that displays the actual code of a banner for other people to copy and paste into their own sites. How is this done?

4 Responses to “How do I display an html code in a scroll box for people to copy and paste?”

  • David D:

    http://allmyfaqs.net/faq.pl?Show_HTML_examples explains how to show HTML examples.

    http://www.domedia.org/oveklykken/css-div-scroll.php explains how to create a scrolling region

  • Thomas H:

    Use the <code> tag.

  • Justin E:

    :D Your talking about a textarea!

    <textarea name="codes" cols="20" rows="5" readonly="readonly">
    put code here :]
    </textarea>

  • Huy T:

    Try this code you see in Youtube:
    <input id="embed_code" name="embed_code" type="text" value="enter embed code here"
    onClick="javascript:document.
    embedForm.embed_code.focus
    ();document.embedForm.embed_c
    ode.sele
    ct();"
    readonly />

Leave a Reply