[fpc-pascal] FreePascal Coding style

Vinzent Höfler JeLlyFish.software at gmx.net
Mon Jan 21 20:07:24 CET 2008


Graeme Geldenhuys wrote:
> On 21/01/2008, Vinzent Höfler <JeLlyFish.software at gmx.net> 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.




More information about the fpc-pascal mailing list