Display code in WordPress

1. Put this before your code

<table border="0" width="400"><tbody><tr><td bgcolor="#666666"><span style="font-family:courier;color:#00ff00;font-size:small;margin:10px;padding:10px;">

2. Put this after you code

</span></td></tr></tbody></table>

3. Now you can change the table width, background color, font name, size and color.
Reference

Another full article on Writing Code in Your Posts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s