I've just answered a question in SO where I had to post four snippets of XML (yes, it was a JavaEE question, how did you guess?)
I made an effort to keep the snippets short and meaningful, but all this code can clutter the visuals of the page, and moves attention away from the rest of the answer.
The site can already detect which parts of the question or answer are code, and paints them in a different font and background. What if it could also add a small toggle button that hides/display each snippet of code?
An example. Displayed:
Please acknowledge my superior Photoshop skillzs.