OK, this is very easy, and this not is pretty much just for me. Here is how you do it:
1) Switch to HTML view (not Visual view) on New Post
2) Add your code with
You will end up with something like this:
Which WordPress then formats to something like this:
var me = User.first me.middle_name = awesome
More information is available from the WordPress “Posting Source Code” page.
Happy blogging (and coding).