What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

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.

share|improve this question
1  
    
@Arjan: Indeed. I was thinking about "cleaning" and "tidying" but it never crossed my mind to look for "indenting" ... facepalm –  Valentin Flachsel May 2 '11 at 10:19
    
Okay, that means you think they are duplicates? Then we can close this one? (Or even delete it, but then it won't take interested people to the existing posts?) Also nice: Can we detect unformatted code and give specific help? –  Arjan May 2 '11 at 10:35
3  
@Arjan: I do think the first question you referenced comes closest to what I had in mind. If the users think this one should be closed, then so be it :) –  Valentin Flachsel May 2 '11 at 10:50

You must log in to answer this question.

Browse other questions tagged .