[Lazarus] Format code on Save
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Wed Jan 25 15:23:09 CET 2017
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.
> An 'after save' could be added, but that would mean save, execute jcf,
> load - loosing the undo stack and possibly moving marks.
No, no, it seems that would not be needed after all. Many thanks for
looking at the code to actually see what jcf does.
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the Lazarus
mailing list