Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

Template for unit creation

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

Is it possible to customise a template for unit file creation? For example, I like to put compiler name and version as a banner at the top with a descriptive comment immediately after the unit statement, (potentially) including VCS tags. Would be nice if this could be part-automated.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mattias Gaertner
to Mark Morgan Lloyd
Show quoted text 5 lines
Is it possible to customise a template for unit file creation? For example, I like to put compiler name and version as a banner at the top with a descriptive comment immediately after the unit statement, (potentially) including VCS tags. Would be nice if this could be part-automated.

You can register new unit types. See here
http://wiki.lazarus.freepascal.org/Extending_the_IDE#Add_your_own_file_type

No one has yet written a gui for that. It is on my todo list.

Mattias

Reply by email