
File Templates
Source Edit allows the creation of Templates for all new documents you create.
When you click on New on the File menu the New Document
dialog box will be presented (this is not shown when you click on New on the Standard
toolbar or if you press the shortcut key combination for this command).
This dialog has a tabbed interface which by default only have one tab (General)
with one item (Blank document). You can however create new tabs and items for your templates.
The File Templates are located in the Templates subfolder of where you have
Source Edit installed. If you create a new subfolder in the Templates folder it will
be shown as a new tab in this dialog. All files in the folder will be shown as File Template
items.
A file template can have any name including any file extension. However the file extension
of the template will determent the syntax highlighter that will be used. For example if you
name a File Template: Standard.htm the HTML syntax highlighter will be used when you create a
new document from this template (see File Mapping). If you
would create a subfolder named HTML in the Templates folder, this file would be shown on the
HTML tab in the dialog.
The template that will be used by default is named "Blank document" (it will be
created if it doesn't exist). This file doesn't have a file extension and can't have one either.
You can however edit the content of this file if you wish. It will then be used every time you
press the shortcut key (Ctrl+N by default) or the New button on the Standard toolbar. Since this
file can't have a file extension the default syntax highlighter will be used. You can specify a
default highlighter on the Language/Tabs page of the Options dialog
box.
See also: Code Templates