[1.7.x] Fix missing highlighting in some code examples

Backport of 84cafc2b35 from master