[fpc-pascal] FreePascal Coding style
Vinzent Höfler
JeLlyFish.software at gmx.net
Mon Jan 21 18:40:56 CET 2008
Graeme Geldenhuys wrote:
> I hope this will be my last reply. Please take a look at the flash
> video on the ET website.
I don't have flash, so I am bound to check out the Java example.
> There he uses two editors (gvim and gedit).
With appropriate plugins/scripts, I suppose.
> And for the last time, tabs are NOT insert tabs into the source code -
> when you press the TAB key the editor creates a TabStop. TabStops are
> like what you get in OpenOffice or MS Office for aligning text. As
> the flash example on the ET website shows - once you save, it replaces
> the tabstops with spaces so that if you had to open it with another
> non-ET enabled editor, alignment would still be correct.
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).
All this fuzz is of no use if you can't restore the information from the
file.
IOW, how does it know that I set tabstops at those locations marked with
<TS>
|function Foo<TS> (const A :<TS>String) :<TS>Integer;
|function Foobar<TS>(const B :<TS>String) :<TS>Integer;
after it has been replaced with
|function Foo (const A : String)
|function Foobar (const B : String)
For me there's no way telling anymore. But probably this editor is so
much smarter than a rock.
Vinzent.
More information about the fpc-pascal
mailing list