Snippets
Snippets let you store content for quick reuse.
How to create a snippet
To create a snippet, select Snippets... from the Options menu. This will display the Manage Snippets dialog, in which you can define a new Snippet or edit an existing one.
The | (bar character) indicates the caret (text cursor) or the selection when the snippet is actually used. For instance:
|
| • | When a snippet with text <!--|--> is used and there's no text selected in the active document, text <!----> is inserted in the active document and the caret (text cursor) is placed in between <!-- and -->. |
| • | When a snippet with text <!--|--> is used and text hello is selected in the active document, text hello is replaced by <!--hello--> and the caret (text cursor) is placed just after <!--hello-->. |
How to use a snippet
To use a snippet, open the Snippets Window (View > Snippets Window) and click on the snippet. Or, use the shortcut for that snippet.