I just had to do some manual experimentation to do this.So far the only way is to use [ sourcecode ] (without spaces).
You can’t specify a language since those get escaped automagically.
If anyone has better ideas for a wordpress hosted site (not self hosted), please let me know!
class ExampleSource(): pass