Code snippets provide "short cuts" for frequently used pieces of code. You can insert snippets in your rules to enter strings of characters that you would normally have to type in using the keyboard. Snippets also reduce the possibility of typographical errors in your code.
You access the available snippets from the Snippets area of the Edit Rule dialog box. This area features two tabs:
Favorites allow you to choose which snippets appear on the System tab. You can mark specific snippets as favorites, and then toggle the display of the list to show only those snippets marked as favorites.
Use this dialog box to define or modify the contents of a snippet, or to change its name or category..
|In the Edit Rule dialog box, right-click on a snippet in the Snippets area and select Edit. This dialog box also displays when you select the text of a snippet in the rule text area and select Capture Snippet from the context menu.|
|Title||The name of the snippet to display in the list.|
|Category||The category in which the snippet is placed.|
|Tooltip||The text of the tooltip to display when the mouse pointer hovers over the snippet in the list.|
|Use Code as Tooltip||Copy the text of the snippet into the Tooltip text box. The text can then be used as it appears in this field, or it can be edited as necessary.|
|Code||The text of the snippet, which can be edited in this field.|
|OK||Saves the edits.|
|Cancel||Cancels the operation.|