Hacker News new | ask | show | jobs
by aasasd 2304 days ago
@alexbakker: could you please make code in the snippets wrap at least when viewed on a phone? I gain nothing from them being non-wrapping, while having to scroll back and forth to read. In each editor I've used, code soft-wraps at screen edge, so I don't even understand where this trend came from.
2 comments

(Or rather, I guess it's inherited from ye olde ‘pre’ block, even though snippets are full of their own markup nowadays.)
As a counterpoint, I always disable wrapping in my editor, as I find it much less readable wrapped.
Well, at least you're likely editing on the desktop. On a phone, reading code listings is PDF all over again.