Technical
Keeping Code Blocks Readable When You Export ChatGPT
February 11, 2026 • 5 min read
Developers export ChatGPT more than anyone else, and code is precisely the content that survives export the worst. The reasons are entirely mechanical.
The clipping problem
On the web, a code block is a scroll container. Anything past the visible width is reachable by scrolling, so nothing is lost. Paper has no scroll axis, so a naive export throws away everything past the right margin.
How wrapping should work
Lines are measured in the monospaced face at the exact rendered size and broken to fit the content width. Wrapped continuations stay in the block, so an eighty-column command remains complete and copy-pasteable.
Blocks that outgrow a page
A long block is split across pages at a line boundary, with the container re-drawn on the next page instead of leaving an orphaned half-box. The language label appears once, on the first fragment.
Convert a chat right now
Paste a public ChatGPT share link and download a typeset PDF — free, no login.
Open the converter