How to blog code on WordPress: Y U NO?!

Image

This was me yesterday afternoon.

After I crafted my first riveting blog post and published it, I realized the HTML and JavaScript code I had included was messed up. Who’d have thought that this online publishing platform would interpret my code into web content, instead of staying unreadable, meaningless markup?! Not me.

So after a bit of googling and harassing my fellow web devs here’s what I came up with: the code language tag! Simply wrap your tag like a precious new born puppy with the code language tag:

Screen Shot 2014-04-30 at 11.36.34 AM

You can find out more from this super useful article.

Tags: , , , ,

Categorised in:

This post was written by Vanessa Merritt

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *