4 ms·
Read the source for plain text mode, not HTML: view-source:https://www.netmeister.org/blog/the-art-of-plain-text.html The page hasn't yet had the necessary
by tomxor 5y ago
Read the source for plain text mode, not HTML:
view-source:https://www.netmeister.org/blog/the-art-of-plain-text.html
The page hasn't yet had the necessary viewport metatag added to prevent mobile browsers doing arbitrary and selective auto adjustments to the font sizes in an attempt to make it "better". (I presume this is what you are talking about - I don't do phones, grumble grumble :wq)
- throw0101a 5y agoWrapping everything in a pre block isn't necessary. For example, look at Daring Fireball: [1][2] which is nicely rendered in a web browser, and very simple when you do a View Source. [1] https://daringfireball.net https://daringfireball.net [2] https://daringfireball.net/2022/02/on_the_origin_of_the_iphone https://daringfireball.net/2022/02/on_the_origin_of_the_ipho...
- tomxor 5y agoIt's not bad, but I prefer netmeister's. > Wrapping everything in a pre block isn't necessary. I'm not saying it has to be all or nothing... but I don't see the point in not wrapping in a pre block or equivalent, having a mix is fine, i.e using an anchor or some <b> and <i> tags if you want sure, but if you are going to insert a bunch of LFs in there anyway for your column width, why not also use them for paragraphs separation, it just seems odd to me to use <p> instead and to clutter the source. You can have HTML inside pre, and you can have as much or little as you want.
- christophilus 5y agoYou can use <p> without cluttering. Put </p><p> on its own line and at a different indentation level. I saw someone do this recently, and the plain HTML read just as well as any plaintext doc I ever saw while also rendering perfectly on the phone (which this article doesn’t do thanks to its use of pre).
- tomxor 5y agowhat exactly is happening on phones with pre?
- giantrobot 5y agoOr mobile browsers just set a viewport width of 960px if no viewport settings are specified. This is a sane assumption since if a viewport width isn't explicitly set the page was probably designed for desktops.