I have enough problems when I try to put HTML or XML snippets in my code. I was trying all kind of stuff. Now I’m using a plugin named Code Autoescape. This All you have to do is to download it as a textfile from this link, rename it as php, upload it in wp-content/plugins of your wordpress installation and activate it from WordPress administration page.

When the plugin is enabled you can white the code like this:

<code><HTML> </HTML></code>

If you want to insert multi line codes you have to put it in <pre> tags:

<pre> <code>

<lineone> </lineone>

<linetwo> </linetwo>

</pre></code>

When I edit the articles containing code I always take care to deactivate the default wysiwyg wordpress plugin, because it changes the article when it loads it in an undesired manner. I deactivated it from Users > Your Profile, unchecking this:

Use the visual editor when writing

http://www.improveseo.info/wp-content/plugins/sociofluid/images/digg_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/reddit_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/delicious_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/blinklist_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/blogmarks_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/furl_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/newsvine_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/technorati_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/magnolia_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/google_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/myspace_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/facebook_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/sphinn_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/mixx_48.png

Related Posts