Activate monospace font inside codeblocks in the post editor

Note that I’m not asking for opinions or advice about why I should not do what I want to do.

I’m asking for a technical solution to a very particular problem I described above.