I seem to regularly have problems adding
code to my answers so that they're formatted properly, and I don't know if it's a bug, me, a combination of the two, or something else altogether.
By way of example, today I posted this answer. Now, in case I get it to appear properly, below is a screenshot of the portion as it currently displays:
As you can see it's not really displaying properly. I've tried following everything in How to improve this source code quoting?, but often the result is the same.
I've also tested this using different hardware, software and operating systems.
What am I doing wrong?
This is happening all too often, but I'm not flagging it as a bug yet because I figure it must be working okay for others.