[Lazarus] Format code on Save

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jan 27 15:37:08 CET 2017


On Wed, 25 Jan 2017 14:23:09 +0000
Graeme Geldenhuys via Lazarus <lazarus at lists.lazarus-ide.org> wrote:

> On 2017-01-25 14:15, Mattias Gaertner via Lazarus wrote:
> > on the current source editor and uses ReplaceLines, so it keeps all
> > marks and adds one undo step. Nice.  
> 
> That is much better indeed. So a 'before save' would then be the useful one.

I added the event.

uses LazIDEIntf

LazarusIDE.AddHandlerOnSaveEditorFile(@YourEvent);

Mattias


More information about the Lazarus mailing list