Display codes
Here are various ways to display HTML codes...
Using code: (Take care, you will have to replace all < by < and all > by >!) This is what I actually use. I customized it with CSS:
<code>Your codes come here</code> Using pre:
<pre>It keeps the white space and lines break but you still have to replace < and > by < and ></pre>
It keeps the white space and lines break but you still have to replace < and > by < and >
Using xmp: (This shows the exact text you put, you don't have to replace anything but it's deprecated)
<xmp><a href="code">example</a></xmp> Of course, all those tags can be customized via CSS so they will look better.
Leave a Comment
Works? Doesn't work? Other tips? Please leave a comment! :)