[RESOLVED] How do i show the HTML for people to copy?

Hi, i've never posted here before, but recently i've had problems with finding the right code for my website. i want it to be possible for people to copy and paste a code for the banner of my site into their's. i've seen on other sites that they have little boxes which scroll down and you copy and paste the code (i can find you an example if you don't get what i mean, i'm not very good at explaining things). I did manage to sort one out which showed the html code of the banner in the box, but it didn't let me highlight it. the code i used was <showtext> or something. how can i get a box showing the html which allows me to copy the text?Use < and >.where?Where ever you want a "<" or a ">" to appear. <code style="border:solid 1px #000; display:block; overflow:auto; padding:1ex; width:10em"><a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.w3.org/">W3C</a></code>or you could do:
<textarea>
This is the text for copying
</textarea>or you could do:
<textarea>
This is the text for copying
</textarea>That would however, be invalid. The TEXTAREA element takes PCDATA and not CDATA. <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-TEXTAREAthanks">http://www.w3.org/TR/REC-html40/interac ... AREAthanks</a><!-- m --> that really helped. just one more problem - how do i get the text to wrap, so that it doesn't scroll across (only down)?Use my example, but be aware that the text will only wrap at whhite space characters. No spaces and you'll not get any wrapping.ok, thanks guys.
 
Back
Top