options:syntax:code-templates

Differences

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

Link to this comparison view

Next revision
Previous revision
options:syntax:code-templates [2014/02/09 01:50] – external edit 127.0.0.1options:syntax:code-templates [2018/04/13 14:51] (current) admin
Line 2: Line 2:
 {{ :options:syntax:syntax-code-templates.png?300|Code Templates Settings}}[[editing:auto_completion:templates|Code Templates]] in HippoEDIT are syntax dependent and inheritable.  {{ :options:syntax:syntax-code-templates.png?300|Code Templates Settings}}[[editing:auto_completion:templates|Code Templates]] in HippoEDIT are syntax dependent and inheritable. 
  
-You can define so many templates as you want +You can
- +  * define so many templates as you want 
-You can add/delete/edit templates.  +  add/delete/edit templates 
- +  hide/or show code templates inherited from parent syntaxes (//Show Inherited Templates// check). 
-You can hide/or show code templates inherited from parent syntaxes (//Show Inherited Templates// check). +
  
 Every template shall have unique //key// (text that triggers template expanding), can have a description (if not defined, //key// is used as description) and can have an [[options:keyboard:assign-shortcut|associated shortcut]].  Every template shall have unique //key// (text that triggers template expanding), can have a description (if not defined, //key// is used as description) and can have an [[options:keyboard:assign-shortcut|associated shortcut]]. 
  
-Shortcuts for Code Templates have priority to global or tools shortcuts and can override them. Shortcuts are only activeif current cursor position in the document located in associated syntax area. {{ :options:syntax:syntax-code-templates-edit.png?150|Editing of Code Template}}+Shortcuts for Code Templates have priority over global or tools shortcuts and can override them. Shortcuts are only active if current cursor position in the document located in associated syntax area. {{ :options:syntax:syntax-code-templates-edit.png?150|Editing of Code Template}}
  
 After execution of the Code Template, associated key/text will be replaced by code template code, that can be defined in //Code// window here. In the template code, you can use as text as variables, which will be substituted by corresponding value during execution. \\ After execution of the Code Template, associated key/text will be replaced by code template code, that can be defined in //Code// window here. In the template code, you can use as text as variables, which will be substituted by corresponding value during execution. \\