Some wordpress plugin enabled you to display source code in your blog post without breaking the HTML code, but there are so many plugins you can found out there. In this post I try each plugin with simple CakePHP controller syntax, and capture the result (most image is shrinked) so you can found the result of your syntax in your post using each plugin.
1. CodeColorer
Plugin based on GeSHi library, which supports most languages. CodeColorer has various nice features:
- syntax highlighting in RSS feeds
- syntax highlighting of single line of code (inline)
- syntax highlighting of code in comments
- line numbers
- automatic links to the documentation inserting
- code block intelligent scroll detection (short code would have short block, for long one block height would be fixed and scrollbar would appear)
- predefined color themes (Slush & Poppies, Blackboard, Dawn, Mac Classic, Twitlight, Vibrant Ink)
- syntax colors customization in CSS file
- code protect from mangling by WordPress (for example, quotes, double-dashes, etc would look just right as you entered)
Visible option setting when you install it with, custom css code, custom width, custom tab size, custom themes, line number, etc.

