[Lazarus] Auto indentation
Graeme Geldenhuys
graeme at mastermaths.co.za
Fri Nov 6 10:09:45 CET 2009
Mattias Gärtner wrote:
>>> To me BEGIN and END clamp a logical block (that is indented by 3
>>> characters) so they need to be aligned with all commands of the same
>> And this is exactly where standard Tabs or Elastic Tabstops will help.
>
> Huh?
What I meant is that is Tab characters where used for indentation
instead of Spaces, then the developers preferred indentation will be
more likely correct that when Spaces are used.
For example:
Using default Delphi coding style where two spaces are used for
indentation. Now everybody sees indentation as two spaces.
If Tabs where used instead, then when I viewed that source code, the
indentation would be closer to what I prefer. In my case that would be
TabWidth = 3 for indentation. Other users might have there TabWidth = 4
or 8 set, and it will look correct for them as well.
So when Tabs are used, each developer can set there preferred tab width.
But using standard tabs, this solution is still not ideal, as my other
post titled "Elastic Tabstops: benefits or not" shows. Elastic Tabstops
still solves this problem in a better why than standard tabs or spaces,
because single tab characters are used more often that multiple tab
characters.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
More information about the Lazarus
mailing list