2 ms·
Why should everyone have to spend time formatting code for reddit that looked perfectly fine in whatever editor it was copied from? Why can’t reddit just displa
by Wowfunhappy 5y ago
Why should everyone have to spend time formatting code for reddit that looked perfectly fine in whatever editor it was copied from? Why can’t reddit just display code properly?
- Jtsummers 5y agoEven HN requires some minimal effort if you want to post code in a way that looks decent. Prefixing lines with 2-4 extra spaces is easy in most decent text editors, and if you don't have a decent text it's not hard to do manually.
- IggleSniggle 5y agoI find it painful, since I do most of my HN and Reddit from my phone. I write code this way directly from mobile with enough frequency…the main feature I long for is to be able to type code fences with backtick. Monofaced fonts would be nice, too, so that you could be sure that you’re on the right indentation level as you tap something in.
- yen223 5y agoI found it interesting that Reddit supports ``` triple backtick-style code blocks ``` and `inline code`, but HN doesn't. This is particularly interesting because Reddit has less of a reason to support those than HN does. Code-related markdown generally don't see a lot of use outside of programming subreddits.