How to Solve Tabs vs. Spaces Forever
inessential.com
inessential.com
I would like to experiment with something like that but given how much existing plain text code there is I don't see this happening any time soon.
But this could work with existing code through simple translation. It could even possibly be converted to an outline when read into the outline-based editor and then be rewritten as plain text when saved.
I have worked on a scheme that makes ES6 look like coffeescript when in the editor while stored as normal javascript on the disk. This would solve the problem of working in (almost) Coffeescript on someone else's project written in Javascript. I'm stuck right now because I can't get the number of changed lines in GIT down to an acceptable level. See https://github.com/mark-hahn/jsw.
This means that all of these existing tools that deal with just plain text would need modifications to handle the richer file format.
Having it as rich text in the editor and then saving it out as a plain text file means you're just making a rich code editor.
It would be neat to see this in a RCS though. Imagine seeing a diff like:
renamed foo() to bar()
bar() changes:
+ if (baz) { ... }
- if (quux) { ...}1. Edit it with an IDE that supports soft-tabs.
2. Save the actual text-file with spaces, for explicit positioning and uniform appearance.
And conversely, if anyone makes the argument of "How to Solve Spaces vs. Tabs Forever", tell them to just use spaces. Problems solved!
If only we could.