Enable syntax highlighting for code snippets.

Also made some minor text formatting.