Custom templates can be added onto the Templates menu using the Template Options dialog (see Introduction to Templates and Scripts for more information on templates). The Template Options dialog can be accessed by clicking the 'Tools > Options...' menu item and selecting Templates, or clicking 'Templates > Edit Template List...'.
The upper part of the dialog contains a list of templates. New templates can be added on the list by clicking New or deleted from the list by selecting an item and clicking Delete. Click the up or down arrows to arrange the templates in the list.
When a template is selected from the list, its attributes will be displayed in the Template Options box. Enter a name for the template in the Name field. This name will appear on the Templates menu (see Templates Menu for more information). Disabling the Visible toggle allows the template to be removed from the menu without deleting it. Enter the file name for the template in the File Name field. Binary templates usually have the extension '.bt'. The folder button beside the File Name field can be used to select a template using a file dialog box. If a mask is entered in the Mask field, this template will automatically be loaded when a file is opened that matches this mask. File masks may contain the characters '*' and '?' to specify wildcards and multiple masks may be separated by commas. If the Run on Load toggle is enabled, this template will be run automatically when it is loaded. When the Show Editor on Load toggle is set, the template be opened for editing in the interface.
The following templates are available by default:
- BMP Template - Template used to parse bitmap files. Loads the 'BMPTemplate.bt' file.
- ZIP Template - Template used to parse ZIP archives. Loads the 'ZIPTemplate.bt' file.
- WAV Template - Template used to parse a WAV sound file. Loads the 'WAVTemplate.bt' file.
The Reset button can be used to reset all templates to their original values.
Importing and Exporting Lists of Templates
The Template Options dialog can be used to export the current list of templates so that they may be
importing into another copy of 010 Editor. To export the current list of templates click the Tools
button at the bottom right corner of the dialog and click the Export Template List option. Choose
the location to save the template list using the standard file dialog. Exported template lists contain two
things: the list of Template Records (all the information displayed in the Template Options group)
plus the actual template files. Exported template lists have the extension ".1tl".
To import an existing template list click the Tools button and then select Import Template List.
Choose a template list to import and the Import Template List dialog will be displayed.
Choose which templates to import from the list at the top of the dialog. If the Import Template Records
toggle is selected, all the template records are read (a template record includes all information in the
Template Options area of the main Options dialog). By default any existing template records are not
modified but they may be overwritten by enabling the Overwrite Existing Records toggle. If the
file to import contains the actual template files (the text 'includes files' should appear beside
the template name in the list), then the actual template files can be written to disk. Enable Import
Template Files to write the files to disk and enable the Overwrite Existing Files option to
overwrite template files on disk. By default the template will be written to the same directory where it
was exported from but if that directory does not exist on this machine, enable the Use Directory
toggle and choose which directory to place all the template files.
Clicking the Import button will perform the import and will display a Results text area with
information about the import. If any errors occurred while writing files, the errors will be displayed in
the Results. Click the Close or Cancel button to dismiss the dialog. This dialog works
the same way as the Import Script List dialog except the dialog operates on templates instead of