Showing code (particularly xml) to a wordpress.com blog
WordPress.com makes it a bit challenging to show xml code in your blog. To show code in your blog, just wrap it in these tags:
‘left bracket’sourcecode language=”css”‘right bracket’
put your your code here
‘left bracket’/sourcecode‘right bracket’
Note: I spent too much time trying to show left and right bracket characters. Finaqlly I gave up and typed the words in single quotes. To use this tip, replace the words with the characters.
The language parameter controls how the code is syntax highlighted. Multiple languages beyond xml are supported:
- matlab (keywords only)