Hacker News new | ask | show | jobs
by a3n 2547 days ago
> If it were really a huge problem, pretty much any editor in existence can do a Replace All to get back perfect spaces-indented code.

Sometimes tabs or spaces are data, like in strings. Replace All is too blunt.

1 comments

For displaying code on websites, it may be a necessary step even if it loses data. Still, at least for most of my personal use cases, it's fine - If I need a tab character in a string I almost always use a tab escape (like \t) anyways, the main exception being for code generation where it is fine if it changes anyways.