Once in a while you might just want to show actual code – HTML, PHP, or Javascript – in a post of wordpress or any other blog or page. For example :

<div align="left" style="width:1000px; height:102px; background:url(new/img/header_bg.gif);background-repeat:repeat-x; vertical-align:top;">
<a href="http://www.freedownloadmanager.org"><img src="new/img/fdmlogo.gif" width="456" height="102" alt="" /></a>

There are some ways to do that, first of all use the <CODE> </CODE>or the <XMP> </XMP> tags and include inside them your actual code BUT this sometimes not actually works, you need to reformat your code using  the SimpleCode HTML Encoder . The encoder will display the correct code you can copy and paste into your post or page. Another HTML Encoder is available here. If you want to read some more ways to include code in your posts read here


By moschos

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.