in reply to Pretty Print
Last I looked at that part of the code, tabs were already being expanded. They are expanded to 4 spaces each. Since it is my experience that nobody can agree on how large a tab should be, I think that is a reasonable compromise choice.
Most of the replies seem to have missed that you are most concerned about the tabs that fall between code near the start of the line and comments that hang near the end of the line. So, expanding tabs to tab stops that appear every 4 spaces might make you a bit happier. But, unless you just happen to use such tab stops, then you likely still won't be totally happy.
So, if somebody would like something simple to implement, a user setting for tabstop choice when posting might be nice. Though, the simple way to implement that means that downloading of the code will get you spaces not tabs.
Another solution, and one that I've used for many years, is to not store tabs in one's source code. If I type a tab, my editor knows to turn it into an appropriate number of spaces for me. Then I never have to worry about how any number of web sites or other tools that my code may pass through think that tabs should be expanded.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pretty Print (already)
by jdporter (Paladin) on May 31, 2016 at 01:29 UTC | |
by tye (Sage) on May 31, 2016 at 02:37 UTC | |
|
Re^2: Pretty Print (example updated)
by LanX (Saint) on May 29, 2016 at 13:27 UTC |