Posting code in WordPress.com

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

1

You will end up with something like this:

1

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).

Matt


Follow

Get every new post delivered to your Inbox.