I would like to see collapsible code blocks in questions and answers. This would be useful because sometimes the amount of code posted in a question or answer becomes so large (and necessary) that being able to easily hide it when you no longer need to look at it would be nice.
This may also address the issue about dealing with reviewing code in an iterative style. By that, I mean that old version of the code can stay in the question, but be defaulted to collapsed, while the new code can be more prominent.
Also, depending on the question revision history probably won't be ideal in most cases, as the old code is still relevant to the question and previous answers.
Example of a non-collapsed block:
class Main{ [hide]
public static void main(String[] a){
new Foo().hello();
}
}
class Foo{
public void hello(){
System.out.println("Hello World");
}
}
Example of a collapsed block:
class Main{ ... [show]
[collapse:22]\r\n class X{ ...
and this would collapse 22 lines down. so we can specifically hid methods, classes that are less important but posted in case. \$\endgroup\$