Hacker News new | past | comments | ask | show | jobs | submit login

Code you write yourself is not usually the source of problems with significant whitespace; it's situations like posting code on websites and discussing it where code in a whitespace-significant language becomes next-to-useless when leading whitespace is stripped, whereas code in any other language will still survive and then easily be autoformatted without changing its meaning.



If I were to use such a shitty website, I'd rather make a pastebin and link to it, instead of forcing every reader to reformat it themselves.


Can’t remember the last time this has actually happened to me. In what websites are people posting code without code block formatting support? Like, instant messengers?


Funfact, even Facebook, Whatsapp, and Telegram support preformatted text in triple backticks.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: