You need to use special character codes as shown here:-
http://www.tedmontgomery.com/tutorial/HTMLchrc.html
definitely for the < at the beginning of every tag; some people say every > closing tag but I've found it unnecessary.
so instead of <div>........</div> in your code you type <div>.........</div> and it shows in the web page as <div>........</div> instead of being operated as code by the browser and viewers can copy/paste it.
Remember to do it at the beginning of every tag.
There is an online code converter here if you have a lot to convert:-
http://www.tutorialtastic.co.uk/converter.php
If you put <code>.............</code> tags around your converted code it will dispaly as a different font-family to show that it is code. You can style the code tag if you want:-
code { font-family: monospace; color: red; }
Last edited by Wickham; 03 Jun 2008 at 03:24 PM.
Code downloaded to my PC will be deleted in due course.
WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.