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

Backport of 84cafc2b35 from master