this post was submitted on 27 Sep 2024
95 points (81.9% liked)

Showerthoughts

29299 readers
1095 users here now

A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The best ones are thoughts that many people can relate to and they find something funny or interesting in regular stuff.

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 71 points 1 day ago (12 children)

Or a renamed txt. Eg, .js, .py, .css, .html, .json

[–] victorz 59 points 1 day ago (11 children)

Thank God they went with file name extensions so we didn't have to preface every source .txt file with header content to instruct the editor about what kind of content it would have.

[–] [email protected] 7 points 1 day ago (7 children)

Why do I need to put that at the start of bash, desktop, and html files then?

[–] [email protected] 4 points 1 day ago* (last edited 1 day ago)

For HTML, it’s to distinguish “standards mode” HTML from “quirks mode” HTML (which doesn’t need a header).

load more comments (6 replies)
load more comments (9 replies)
load more comments (9 replies)