While this isn't exactly rocket science, it may be helpful to someone. In my experience, when you try to include code in a WordPress page or post, it will convert quotation marks into fancy quotation marks, which makes the code useless if you want to cut and paste it. If you try to enter certain types of code (html, for example), WordPress is likely to interpret it instead of displaying it. You can get around this problem with a plugin that utilizes Alex Gorbatchev’s SyntaxHighlighter project.

The plugin SyntaxHighlighter Evolved allows you to wrap your code in "sourcecode" tags, protecting it from the WordPress forced beautification. It's used like this: