[Lazarus] Auto indentation

Paul Ishenin webpirat at mail.ru
Tue Nov 3 17:12:08 CET 2009


Mattias Gärtner wrote:
>> the code in the buffer is:
>> [code]
>> for i := 0 to 10 do
>> if i = j then begin
>>  j := i;
>> end;
>> [/code]
>
> Just a note:
> The indenter indents the pasted block as whole, not every line.
> This has pros and cons. Maybe eventually an option can be added to 
> indent instead every line. Indenting every line means bad and good 
> indenting will be undone. IMO this is the inferior technique.
> With the current synedit line ranges only the line-indenting can be 
> implemented.
Ok, but in any way the final 'end' in the above example should be 
indented and also indentation should not be switched off because of the 
cursor position.

Best regards,
Paul Ishenin.




More information about the Lazarus mailing list