Using a formatter like rustfmt, you could generate multiple versions of a code block with different column widths. Then, through JavaScript, you could load the one that fits based on the viewport width to get actually responsive `<pre>` tags. 🤔

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!