2 ms·
In short, what I want is to be able to: a) use proportional font in my editor b) be able to align things horizontally c) ensure that this alignment
by klibertp 12y ago
In short, what I want is to be able to:
a) use proportional font in my editor
b) be able to align things horizontally
c) ensure that this alignment is preserved when someone opens my code with another editor or another font
Presently it's impossible to get all three, so I'm going with b) and c). seanmcdirmid seems to want only a) and b), but without c).
As for solution, sean himself pasted something interesting:
> Elastic tab stops: http://nickgravgaard.com/elastictabstops/ http://nickgravgaard.com/elastictabstops/
I wasn't aware of that, but it seems interesting, but I didn't look into that much yet. Also, while it seems to cover half of c) (with different font) it will be probably editor dependent (EDIT: but then again, every other solution would be too).
- seanmcdirmid 12y agoYou've added a d: d) let me use any editor; e.g. emacs, vim, or notepad None of these editors know alignment outside of primitive spacing and tabbing, so therefore archaic monospace fonts win by default; QED. I'm claiming that not all of these requirements are necessary. We can ensure alignment if the font is fixed for code, or we could ensure alignment in the editor. Neither of these are crazy relaxations.