simple to use Code Snippet plugin that shows your code in the WordPress Codex style. Easy & Clean. Unlike some other syntax highlighters plugins this plugin will also make your code look good in excerpts and rss feeds. Your shortcodes won’t be visible anywhere, and code will still be code, not some messed up text.
To add Simple Code Snippets wordpress plugin to your WordPress blog
1. Download Simple Code Snippets wordpress plugin from this link .
2. Unzip and upload it into your WordPress wp-content/plugins directory.
3. Login to wp-admin. In your admin dashboard click plugins and activate the Simple Code Snippets wordpress plugin.
And output looks like
<html> <body> <?php //This is a comment /* This is a comment block */ ?> </body> </html>