The 80 character per line rule is ancient and almost everyone just ignores it whenever it's convenient to.

I have a script I wanted to post as an example, but it looks like crap on SO, so I posted it as a Gist and linked to it. I would have just rewritten the code to make it fit, but it becomes much less readable.

If GitHub do this, SO could.

P.S. If you're interested, it's this script.

  • 1
    Code Review has a smaller font. We've floated the idea of using the same font on Stack Overflow, but it's never gotten much traction. – user102937 Jul 9 '13 at 17:13
  • @Robert ooh, I do like the font on code review much better. FWIW, Droid Sans Mono 12px is also the font used on Database Administrators. – Aaron Bertrand Jul 9 '13 at 17:17
  • @RobertHarvey Were there any objections? – Carl Smith Jul 9 '13 at 17:19
  • @CarlSmith: No, but I guess it wasn't compelling enough. I've worked with designers before; they don't like you moving their cheese unless there's a really good reason, because all of the elements that a designer puts into a web page have to work together harmoniously. (Boss: Can you make that label fuschia? Designer: AAAARRRGGGGHHH!) – user102937 Jul 9 '13 at 17:23
  • Fair enough. I'm liking the pop out window idea suggested in the thread Aaron linked to below. – Carl Smith Jul 9 '13 at 17:26
  • 3
    @CarlSmith the pop out window will be a disaster in cases where there are many independent code snippets in a post and, say, you want to compare two of them. Will there be a single pop out window that gets its contents replaced every time you try to inspect a different code sample? Will you now have many windows to manage? How will this work on mobile? – Aaron Bertrand Jul 9 '13 at 17:34
  • 1
    80 characters ought to be enough for anybody. Please also have pity for us working in cramped rooms on old VAXes. – Deer Hunter Jul 9 '13 at 21:49
  • @DeerHunter But then people started to use C++ templates. – Boris Dalstein Jul 9 '13 at 23:50

There were lots of duplicates pointed out in this question, asked last night.

One of them in particular showed some workarounds you can try out for yourself; I haven't tried them, but they may already work in SO better than the one you wrote.

  • Thanks, I did do a quick search. I'll follow that thread. Can you close this please? – Carl Smith Jul 9 '13 at 17:14

You must log in to answer this question.

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