3 ms·
Useful? Yes. But then you need some way to provide the exact indentation/spacing in some cases. And the easiest is to provide them verbatim.
by playingalong 2y ago
Useful? Yes.
But then you need some way to provide the exact indentation/spacing in some cases. And the easiest is to provide them verbatim.
- SoftTalker 2y agoHTML has the "pre" element that does this.
- jbaber 2y agopre does a lot more than respect newlines.
- arp242 2y ago"white-space:pre-line" in CSS should make it only break on hard enters. There are a bunch of values; see e.g. MDN. Can be used on any element of course, not just <pre>.
- bastawhiz 2y agoNo? https://searchfox.org/mozilla-central/source/layout/style/res/html.css https://searchfox.org/mozilla-central/source/layout/style/re... The Firefox default style sets a fixed width font and sets a small margin. What's "a lot more"?