files:template

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
files:template [2018/01/10 19:41] – external edit 127.0.0.1files:template [2018/03/23 12:51] (current) – external edit 127.0.0.1
Line 3: Line 3:
 File templates are files, with default pattern content, used to "pre-fill" newly created documents.  File templates are files, with default pattern content, used to "pre-fill" newly created documents. 
  
-Selection of the file template is done based on extension of new document and name of template: editor searches for file with same extension and name "default" in directory of file templates. +Selection of the file template is done based on the extension of new document and name of the template: editor searches for file with same extension and name "default" in the directory of file templates. 
 To find directory where file templates are located select File->New->Manage File Templates (usually [[options:user_directory|<user-directory>]]\templates). To find directory where file templates are located select File->New->Manage File Templates (usually [[options:user_directory|<user-directory>]]\templates).
  
 {{:file_templates.png?400|New File Template}} {{:file_templates.png?400|New File Template}}
  
-You can have different templates for same extension, you can use [[general:built-in-variables|built-in variables]] inside for filling default values, you can skip using of the file template by keeping Ctrl pressed when creating new file.+You can have different templates for the same extension, you can use [[general:built-in-variables|built-in variables]] inside for filling default values, you can skip using of the file template by keeping Ctrl pressed when creating new file.
  
 <note>Because contents of file templates are preprocessed, you need to escape special characters as % -> %% same was as it done when defining [[options:syntax:code-templates|code templates]].</note> <note>Because contents of file templates are preprocessed, you need to escape special characters as % -> %% same was as it done when defining [[options:syntax:code-templates|code templates]].</note>
 ====== Configuration ====== ====== Configuration ======
 If you want to change default templates directory, you can do this by [[options:xml:templates-directory|direct modification of xml setting file]].  If you want to change default templates directory, you can do this by [[options:xml:templates-directory|direct modification of xml setting file]].