5 ms·
Most people consider that anything but cosmetic.
by DasIch 11y ago
Most people consider that anything but cosmetic.
- jeffreyrogers 11y agoWell the indented parts will always line up correctly (since all they have before them are spaces or tabs), the only problem is if you use spaces for alignment after you've already typed some text.
- jonhohle 11y agothe one true argument alignment style™ does not work (well) with variable width fonts: retval = select(readFDCount, &readFDs, NULL, NULL, &timeout); or: d = [NSDictionary initWithObjects: objects forKeys: keys count: count]; added
- chrismorgan 11y agoThe first would be easy to simulate semantically, treating the leading whitespace as a flexible tab stop and thus replacing all the leading spaces with a space of the appropriate width (basically, the editor would replace the leading spaces with `retval = select(` with opacity 0). The second would be more difficult to handle, but so long as you know what to look for to indicate the style is being done it could be handled perfectly intelligently. It’s not the simplest thing, but it’s perfectly feasible. Basically, variable width fonts can become fine so long as you also have semantic understanding of what is being achieved with whitespace. The use of monospace fonts is a cop-out, pure laziness. [Yes, I am deliberately stating this more strongly than I believe. It’s an understandable laziness, as the problem is hard and the industry and tooling all backs monospace, but it is laziness.]
- seanmcdirmid 11y agoElasti-tabs can handle the first case, though I don't really see why you would want to bother. The second case...I don't think is reasonable.