[Lazarus] Auto indentation

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Nov 4 02:36:29 CET 2009


Graeme Geldenhuys schrieb:

> The following site explain benefits of Elastic Tabstops and bust some myths:
>    http://tibleiz.net/code-browser/elastic-tabstops.html

Source code formatting is a matter of taste. Regardless of the internal 
storage of horizontal formatting, the result does not please everybody.

I'd appreciate a version control system that separates formatting from 
content, and thus would track only changes in the content, regardless of 
whitespace and line breaks. Then everybody could apply his preferred 
formatting to some shared source code, edit it, and store back only the 
essential changes. Furthermore the *language* should allow for automatic 
formatting, and the OPL has certain deficiencies in this area.

If somebody wants to have formatted tables, he'll have to insert 
formatting *instructions*, so that the layout can be restored later - 
but where should such instructions be stored? We'll also need an editor 
that hides the formatting instructions while editing, with all the 
problems when text is moved (cut&paste) across formatted parts of the text.

DoDi





More information about the Lazarus mailing list