class EnumName([mixins...,] [data_type,] base_enum):
pass
with explicit py syntax highlighting:
class EnumName([mixins...,] [data_type,] base_enum):
pass
I guess the default is for the highlighter to guess a language? While not necessarily bad, IMO defaulting to python on this site would be better behavior.
This particular example was taken from Bad representation of expressions with "-" , but I have seen this a few times in the preview and added the language manually before posting.
For reference, this is what the preview looks like: