Graeme Geldenhuys wrote:
On 21/01/2008, Vinzent Höfler <[EMAIL PROTECTED]> wrote:

Yes, that's what I figured. What I don't get is how the editor extracts
the information _back_ from the file after the "tabstop" information has
been deleted (that's what it does once it gets replaced with spaces).

I don't know! It just does!  :-)  Actually on a serious note, it uses
pixel calculations based on the ET parameters you can specify:
MinimumWidth, PaddingWidth etc...  When viewed with a ET enabled
editor, the text might shift by a few pixels (not spaces) but all
alignment will still be intact. It's just that clever!  :)

Hmm. That either means it stores additional information about the file (something that also needs to get versioned then - which is problematic given that this data may even be plugin/editor specific) or it uses some heuristics based on the file/language. As it is the case with all heuristics it can go wrong - and Murphy dictates if it can, it will. So I don't know if it's of so much use unless I start using proportional fonts just for the fun of it. ;)


Vinzent.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to