Library
Library allows to store pieces of code so that you can easily reuse them later.
Visually Library is a dockable panel displaying set of folders and non folder items - snippets. Library allows you to save unlimited number of code snippets and categorize them in an unlimited folder structure.

HTMLPad already comes with a few useful code fragments stored in Library. You might want to check those ones.
To show or hide Library pane, on the View menu, click Library.
Insert code from Library
To use Library interface, first make sure that Library panel is visible. If not, on the View menu, click Library.
Inserting code snippet from Library panel into your document is easy, it can be done in two ways:
- Place caret in your document where you wish to insert code snippet and double click the snippet in Library panel.
- Just drag the snippet from Library panel to the place in your document where you wish to insert it.
- Of you have assigned a shortcut key to the snippet you want to insert, just press the key combination. Library panel must not be visible in this case.
Add code to Library
To add your own code snippet to Library
- On the Options menu click Library Editor.
- Select one of available folders or use New Folder or Subfolder button to create a new one.
- Click New Snippet.
- Snippet Editor appears. In the Name box, enter title for the snippet. Then enter snippet contents in text edit box(es).
- Click OK to save code snippet.
- Click Close to exit Library editor.
|