On Tue, 11 Apr 2017 12:02:05 +0100 Graeme Geldenhuys via Lazarus <[email protected]> wrote:
>[...] > I want to change that so the default has difference uses clauses, > defines the text encoding of the source file etc. Where does the above > code come from? Hard-coded? Yes, components/ideintf/projectintf.pas TFileDescPascalUnit It creates the code from various IDE options and packages can define their descendants to replace whole or parts. > eg: > MSEide has a ‘templates’ folder where all such auto-generated code is > defined. Nothing is hard-coded in the MSEide executable. From your > answer I assume Lazarus doesn’t do anything like this, and instead > hard-codes such default unit templates. :-/ It should be easy to add a "user unit" template, that loads the source from a file and replaces some macros. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus-ide.org/listinfo/lazarus
