I often come across questions (and sometimes even answers) with poorly formatted code blocks and I was wondering if it would be possible to add a "Tidy up" function/button (like the one on jsFiddle, for example) to the post editing area. This would obviously have to work on selected text only due to the fact that both code and explanations go in the same text area.

I personally think that not only would it help people concentrate on the answers rather than deciphering the question author's code, but it would also make life a lot easier for users who go around editing other people's posts for readability and improvement in general.

I apologize if this has been asked before, I did search for potential duplicates but I couldn't find any.



You must log in to answer this question.

Browse other questions tagged .