9 out of 10 poor questions have code flung onto the site in the most unpalatable and unreadable way.
I have wasted days of my life fixing other people's code formatting and got bored with it a while ago, especially since there is a good chance the questions will be closed or marked as duplicates.
These days, I have taken the approach of asking the user to spend two minutes (ideally, before asking a question) to format their code and post to make it easier to read and easier to answer (in the nicest way I can muster).
Note: I realise new users have no idea of the site norms, and they learn this over time seeing how people format their questions.
Yet still, I have formulated the opinion that there are enough tools to help new users format their own questions; it's not rocket science, and there is a basic interface with few degrees of freedom well suited to it. Even if done abnormally, it tends to be a better received question in general.
Secondly, it shows the question is not lazily hewn and they've spent the time constructing a palatable question for us diligent foot soldiers to read.
Is it a fair (and just) comment to ask users to spend the time to format their own code and question, or is this just noise and unwelcoming?
Example of my more welcoming moments
Welcome to Stack Overflow, please spend 2 minutes when you ask a question formatting your code. It's hard to read, and it makes the question look lazy.