We use CodeMirror today and should try to enable code folding. This would allow users to fold and hide pieces of code they don't care about. See http://codemirror.net/demo/folding.html for more information.