Each template can be customized to your needs. The templates are in the configuration
directory, which is in <codeclass="filename">~/.geany/</code> (see <ahref="ch03s02.html"title="Command line options">the section called “Command line options”</a>
for further information about the configuration directory). Just open the desired
template with an editor (ideally <spanclass="application">Geany</span> ;-) ) and edit
the template as your needs. There are some wildcards which will be automatically
replaced by <spanclass="application">Geany</span> at startup.
In the configuration dialog you can find a tab "Templates"
(see <ahref="ch03s06.html#confdialog_templ"title="Figure3.10.Template tab in preferences dialog">Figure3.10, “Template tab in preferences dialog”</a>). You can define the default values which
will be inserted in the templates. You should restart <spanclass="application">Geany</span>
after making changes, because they are only read at startup.
</p><divclass="table"><aname="id2797717"></a><pclass="title"><b>Table4.4.Template wildcards</b></p><divclass="table-contents"><tablesummary="Template wildcards"cellspacing="0"cellpadding="4"border="1"><colgroup><col><col><col></colgroup><thead><tr><th>Wildcard</th><th>Description</th><th>Available in following templates</th></tr></thead><tbody><tr><td>developer</td><td>The name of the developer.</td><td>filetypes, file header, function description, ChangeLog entry</td></tr><tr><td>initial</td><td>The developer's initials, e.g. "ET" for
Enrico Tröger or "JFD" for John Foobar Doe.</td><td>filetypes, file header, function description, ChangeLog entry</td></tr><tr><td>mail</td><td>The email address of the developer.</td><td>file header, function description, ChangeLog entry</td></tr><tr><td>company</td><td>The company the developer is working for.</td><td>filetypes, file header, function description, ChangeLog entry</td></tr><tr><td>year</td><td>The current year in the format: YYYY</td><td>filetypes, file header, function description, ChangeLog entry</td></tr><tr><td>version</td><td>The initial version of a new file.</td><td>filetypes, file header, function description, ChangeLog entry</td></tr><tr><td>date</td><td>The current date in the format: YYYY-MM-DD</td><td>filetypes, file header, function description, ChangeLog entry</td></tr><tr><td>untitled</td><td>The string "untitled" (this will be translated to your locale),
used in filetype templates</td><td>filetypes, file header, function description, ChangeLog entry</td></tr><tr><td>geanyversion</td><td>The actual <spanclass="application">Geany</span> version,
e.g. "Geany 0.10"
</td><td>filetypes, file header, function description, ChangeLog entry</td></tr><tr><td>datetime</td><td>The current date and time in the format: DD.MM.YYYY HH:mm:ss ZZZZ</td><td>file header, function description</td></tr><tr><td>filename</td><td>The filename of the current file. Only available for the file header template.</td><td>file header</td></tr><tr><td>gpl</td><td>This wildcard inserts a short GPL notice.</td><td>file header</td></tr><tr><td>functionname</td><td>The function name of the function at the cursor position.