Azərbaycan dili Bahasa Indonesia Bosanski Català Čeština Dansk Deutsch Eesti English Español Français Galego Hrvatski Italiano Latviešu Lietuvių Magyar Malti Mакедонски Nederlands Norsk Polski Português Português BR Românã Slovenčina Srpski Suomi Svenska Tiếng Việt Türkçe Ελληνικά Български Русский Українська Հայերեն ქართული ენა 中文
Subpage under development, new version coming soon!

Subject: HTML help needed

  • 1
2007-07-16 22:29:28
Greg H [del] to All
Can anyone tell me how to put html on a website so people can see the actual code? (i.e. so they can copy and paste it).
Thanks
2007-07-16 23:00:43
You could wrap it all in a < textarea > tag (you'd want to format the textarea so your code was visible), or you could use the ascii code for the brackets:

<html>

& lt ; - for the left bracket
& gt ; - for the right bracket
Without the spaces
(edited)
2007-07-16 23:03:39
So if I put in < textarea >my code< / textarea > (without the spaces) it would show my code?
2007-07-16 23:06:03
Yep. In a nice sexy box. You'll want to give the textarea rows and columns to make it wide/high enough.

<textarea row="10" cols="10"> <code> </textarea>
2007-07-16 23:06:54
Awesome, thanks.
2007-07-16 23:07:48
No problem. Always ready to dish out the HTML and CSS advice.
2007-07-17 00:25:43
What is their best song?
2007-07-17 21:06:01
I said CSS not CSS.
2007-07-17 21:06:35
Honestly, some people.
  • 1