I was attempting to answer this question,

How to represent a long if-else tree in a concise manner

and it has a lot of code and is hard to remember without referencing it. While answering, I was constantly scrolling up and down to see the question because I had to scroll past several answers. These answers were long by necessity just because of the amount of code.

Is there a way to collapse all answers except my own, so I can refer to the original question without having to do a lot of scrolling?

Edit: It would be like the Comments where you can click the down arrow, except it wouldn't be automatically there. You'd have to explicitly click it instead of it being the default like with Comments.

  • Why don't you copy the relevant parts of the question into the edit box, either temporarily until you are ready with your answer, or as a quote? – Doc Brown Aug 15 '17 at 21:28
  • I thought of that, but it seems impractical on some of the larger questions. – johnny Aug 16 '17 at 12:33
  • 1
    Another simple solution is to open the page in two browser windows: one where you have the question open, and one where you type your answer. Works best with two monitors.. – Doc Brown Aug 16 '17 at 13:00
  • @DocBrown That's a good idea. I'll try it. – johnny Aug 16 '17 at 19:11

You must log in to answer this question.

Browse other questions tagged .