[Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]

Henry Vermaak henry.vermaak at gmail.com
Sat May 29 17:08:15 CEST 2010


On 29 May 2010 15:20, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> On 29 May 2010 14:53, Henry Vermaak wrote:
>>
>> I use the tab key for indentation, never alignment (after text).  This
>> way it always looks good for everyone's tab-space settings.  In the
>> very rare case I need alignment, I'll use spaces.  You are writing
>> code, after all, not designing a powerpoint presentation.
>
> Just try the ET java demo. One tab character can do indentation and
> one tab character can do alignment (eg: comments after code). No
> matter the developers indent/alignment preference, everybody's code
> will look they way they like it.
>
> Another awesome thing which your method of alignment fails miserably
> (using spaces). If the code text becomes longer, you need to re-align
> all the other comments. ET does this all automatically (without the
> need for extra tab characters) - just keep coding. This is all visible
> in the small java ET demo (but remember the small java demo is not
> tuned for performance with large files - the gEdit plugin is much
> faster).

This is why I don't put blocks of comments after code.  Imho
multi-line comments belong on their own lines, otherwise it messes up
the way I read code.  You're also more likely to exceed 80 chars width
if you do this.  Personal preference, of course  The elastic tab stops
are clever, but you are limiting yourself to editors that support
them.

Henry




More information about the Lazarus mailing list