@Dennis could the link markdown be modified to allow multiple TIO answers in the same SO post? Like here : http://codegolf.stackexchange.com/posts/109284/revisions both redirect to the same TIO page
@Adám Not at the moment. It used to do that (over a year ago), but people requested to change the behavior. I can incorporate that into the per-user settings though.
I just had this great thought. The header, code, and footer sections suddenly reminded me of using Sage. Since the header/footer, etc are essentially the same as the code block, you could change the layout to be like a Mathematica or Sage notebook, where the number of code boxes is dynamic (click '+' to add another), and each has its own byte count and execution control.
This would require executing each block separately though, unless you handle that.