The long code block will be stored in a scroll-able box. And printing will crop the code.
A workaround is switching to mobile view (by click the "mobile" at the bottom of the page). However, it will not color high-light the code (color printing code is very helpful). I have another question about it: Why is the code syntax color highlight gone in the mobile view?
- Add syntax color highlight in the mobile view.
- Provide a "print page" function/view.