For a medium-to-large code blocks, it’s very impractical to type them with alignment, as people usually do in the code, because a non-monospace is used.
This is a feature request to automatically use monospace font inside the code blocks where we edit the post content.
This is great. However, it has been said multiple times that the Discourse team is not going to support a wysiwyg editor officially any time soon, and any non-official plugins in this area are very prone to issues and are hard to keep up to date. I wouldn’t use a non-official plugin in the community I’m launching.
… which is confirmed by the plugin’s author’s recent post:
I don’t think it’s possible to have a text area in a browser have multiple different font-family for different lines of content. So considering Discourse composer is text-area based, and this isn’t something we plan to change in the near future I don’t see how to address your feature request.
The best you could do is set the whole composer to use a mono spaced font using CSS. Maybe even restrict that change to a specific category or tag.