Enable syntax highlighting for code snippets.

Please update the XML snippets as I have shown here.