Fix missing syntax highlighting in README

Currently some of the source code in the README is syntax-highlighted and some is not.

I added syntax highlighting to the code fragments where it was missing. This improves README readability.