It’s currently hard to usefully include code in documents because the content width is too restrictive. As soon as you start indenting even just a couple of levels, the code becomes really hard to read.
I’d fix this by allowing including a code block as its own file that can be navigated to separately, and embedded in a Doc as a link