Template list command (Layout tab)

This command toggles the visibility of the Template List. The Template List displays all templates that have been defined using the Modify templates dialog accessed under the Insert template dropdown in the Edit tab or the Code template dropdown in the Coding tab. Double-clicking on any listed template will insert that template into the active document at the current cursor position.

Templates are organized in four groups: Global, Layouts, Languages, and Projects. Global templates are always available; Layout templates are only available when the layout they're associated with is loaded; Language templates are associated with languages specified for syntax highlighting and are only available when editing files with extensions that match that language; and Project templates are only available when the project they're associated with is loaded.

Right clicking on a template group in the Template List displays a context menu with the following options:

Modify Templates presents the Modify Templates dialog
Open Template File

opens the template file for the active group in the edit window

Right clicking on a template name in the Template List displays a context menu with the following options:

Sort Alphabetically sorts listed templates alphabetically within active group
Move Up moves the selected template up one position in the list
Move Down moves the selected template down one position in the list
Delete Template removes the active template from the list and the relevant template file
Add/Modify Template presents the Modify Templates dialog so the selected template may be edited or new templates added
Insert Template inserts the selected template into the active document

Description

If desired, users may include a description for a template. This is limited to 79 characters. When the cursor hovers over the template name in the Template List, a tooltip will be displayed with the label Template Description followed by the specified description. If a description is not specified, the label Template Extract will be displayed along with the beginning portion of the template itself.

Template Creation

Along with manually creating templates in the Modify Template dialog (described above), users may also select text in a file and drag this to a template group in the Template List to quickly create a template. The newly created template will be given a generic default name which immediately becomes active for editing. In order to quickly create templates in this manner, Disable drag & drop must be unchecked under Configuration - Editor - Miscellaneous.