[1.7.x] Fixed some doc errors that caused syntax highlighting to fail.

Backport of 27fdac97ae from master