On occasion, on SO and here, posters will post there code as pictures and not in code-blocks. As a group, should we encourage or discourage this practice?

2 Answers 2


In my view, we should discourage it where they are looking for someone to improve their code. If the look of the screen is important and can't be replicated (easily) in StackExchange's own formatting, a screenshot would be fine as long as the relevant code is also provided as code blocks.

  • 1
    If it is a question about formatting, then I'm fine with the picture; it's evidence, after all. So, I agree.
    – rcollyer
    Jan 21, 2012 at 2:00
  • Sometimes pasted code in markedown is just unreadible, especially when a lot of special characters are present. I agree that in these cases both code and picture may/should be posted. Perhaps we could put the code in the description of the picture (the stuff in the markdown code that ends up being the anchor of the picture link)? Jan 26, 2012 at 14:30

"If your code is intended to be executed by the people supposed to help you, make it copyable."

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .