Many a time and oft there is a real need for long sequences of code, especially stack traces or error logs. This also happens in other SE sites, TEX being a good example. Unfortunately, these long code blocks can reduce the readability of the question, and let important non-code text ignored.
Do you think that adding a show\hide (or collapse\expand) button would be a good idea?
Addendum
My first idea was to have only a collapse\expand button, but reading the comments and other questions made me think that other functionality could be added:
- Expand\Collapse
- Copy to clipboard
- Open in a new window
- Toggle line numbers on and off - simplifies referring to a specific line in an answer.
Syntax Highlighter evolved might be a good example.
UPDATE:
This is really annoying in Server Fault questions with long logs or configuration files. The question itself virtually undetectable between all the long code snippets.