The Code Snippets Library is displayed in the Resources window. This function lets you create a personalized code list that you can insert in your document. Personal codes can be classified by category, programming language, etc.
Select the command Display|Display Code Snippets Library.
You can also use the shortcut key SHIFT + F8. (See the List of Shortcut
Keys).
The element Library Code Snippets displays a tree, containing the list of all folders and subfolders you have created and their codes.
Select the folder in which you want to create a subfolder.
Enter the folder name in the dialog box New Folder.
Place your cursor on the
file, or class the code, then click on the button Add an Item .
The dialog box Item Properties
opens.
Enter a name in the dialog box Item Name.
In the zone Text to Insert before Selection, enter the text you want displayed in front of the selected content in the Edit Window (at the start). E.g.: for HTML or XML code, enter the start tag.
In the zone Text
to Insert after Selection, enter the text you want displayed following
the selected content in the Edit window (at the end).
E.g.: for HTML or XML code, enter the end tag.
Check the box Do Not Overwrite Selected Text, to ensure the selected content is not deleted once you insert code.
Click on OK to save the code.
In the Edit window, select the text you want inserted within the code.
In the Code Snippets Library window, select the code to insert.
Click on the Insert in Document
button.
The text is now inserted within the text preceding and following the
selection.
Select the code to be modified.
Click on Delete to delete the code.
Click on the Properties button to modify the code.
Move the code by dragging it to another folder.