Code Snippets
Overview of code snippets
Code snippets allow for quick insertion of code and tags using keystroke combinations.

The code snippet palette
Any keystroke that is not currently used by the system can be used for your snippet.
 |
Note:
If it is used by the system or HyperEdit already, it will probably beep (and the shortcut field will not be updated). Simply choose another combination.
|
Command-keys are not required, so even regular letters can be used. For example, the "enter" key (on the numeric keypad) is by default set to generate a <br>.
Groups of one level can be created for organizational purposes. Double-clicking a snippet will insert it into the document, whereas double-clicking a group will allow you to rename it. Simply drag and drop snippets or groups to rearrange them.
snippet editor fields
- Name: This is the description that will appear in the code snippets palette.
- Insertion: Whether the selected text should be preserved by placing the snippet's pre- and post-insert code snippet before and after the text, or if the selected text should be replaced by the pre-insert code snippet.
- Pre-insert Code Snippet: The code that should be placed before a selection, or the code to replace the entire selection if the insertion option is set to do so.
- Post-insert Code Snippet: The code that should be placed after a selection (only if insertion radio button is not set to replace the selection).
- Shortcut Key: The keystroke combination that will insert this snippet into the document.