Follow

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
Mastodon

The original server operated by the Mastodon gGmbH non-profit