Tidy up code examples in posts

* Switch tabs to spaces, use two spaces
* Decode HTML entities
* Add Github flavoured language to code blocks
* Remove Wordpress “more” comments
Remove edit markup and styles

* Keep edit notices to a simple paragraph with a timestamp
Correct heading level in markdown
Smart quotes

* Smart quotes
* Contract eg and ie
* Fix the occasional typo
* Hyphens to mdashes