You can download this nice plugin from village-idiot.org. WP-Simplecode is a simple plugin for WordPress that takes standard HTML markup and processes it for use within code examples, inspired by Dan Cederholm’s SimpleCode script. The installation process and the use is very easy. Thanks to this plugin so we can now write code directly into the blog.