I doubt this is intentional – it‘s syntax highlighting, which in this case was added automatically when the question was tagged python, see its Tag Info page:
Code Language (used for syntax highlighting): lang-py#
The syntax highlighting help page explains how one can add this highlighting to one or all code blocks.
Further reading: