This would be soo easy to implement with just a little bit of jquery... And, it would make reading large code blocks sooo much easier. Pretty please? I'll even write it...


2 Answers 2


I'm not talking with authority so don't quote me on that but posting overly large source files on Stack Overflow is generally discouraged.

People should only post short snippets or the most relevant parts of their code. So in essence one should avoid large code blocks.

  • 1
    I agree, if someone is posting so much code that the area currently set aside to show a block of code becomes cumbersome, then it is too much code. The solution is not to change the display area, but to encourage the poster to reduce the amount of code. Commented Jun 29, 2011 at 21:23
  • +1, @octaviandamiean, @lassevkarlsen, I think this is a valid point. However, there certainly must be exceptional circumstances where long code blocks are justified? Wouldn't it be better to have a warning appear prior to maximizing the full screen mode than to not have the feature at all? Or, it could be a restricted privilege for users whose reputation has proven they will use it judiciously. Commented Jun 29, 2011 at 21:58
  • Sometimes it's not the number of lines of code (say 10-20 long), but rather the width. I often find myself sketching out an answer in my IDE, then when it comes time to post I'm doing formatting gymnastics to make it fit left to right.
    – EBarr
    Commented Feb 29, 2012 at 22:38
  • But what about for code review? Commented Aug 22, 2015 at 21:39

You must log in to answer this question.

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