Cord posting source code

blog

While WordPress.com doesn’t allow you to use potentially dangerous code on your blog, there is a way to post source code for viewing. We have created a shortcode you can wrap around source code that preserves its formatting and even provides syntax highlighting for certain languages, like so:

#button {
    font-weight: bold;
    border: 2px solid #fff;
}

#button {
font-weight: bold;
border: 2px solid #fff;
}
To accomplish the above, just wrap your code in these tags:

your code here

Leave a comment