Page 13: WordPress has no mechanism for Adding Code to Posts

If you have a need to display some PHP, Javascript, or CSS style code in a WordPress post you might have a problem. It has to be “escaped” to be able to present it on the page – otherwise WordPress will try to “run” it as part of the page processing, not “display” it to the reader. I write about the plugin I use to write code in my posts in Highlighting or Escaping Code in WordPress is Easy, but there are many different ways to do it. The WordPress Codex explains why it’s difficult to Write Code in Posts, which is why I prefer to use a plugin to accomplish it. Lorelle has a great list of WordPress Plugins That Help You Write Code if you want to view some other alternatives.