options:syntax:code-templates

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
options:syntax:code-templates [2016/05/13 22:52] adminoptions:syntax:code-templates [2018/04/13 14:51] (current) admin
Line 9: Line 9:
 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 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}}+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. \\