To Extend an Existing Text Clip File

Programmer's Notepad 2

To Extend an Existing Text Clip File

To add a new clip to an existing library:

  1. Open the desired Text Clip file in Programmer's Notepad.

  2. Create a new line following one of the </clip> tags. Note that clips appear in the same order in which they exist in the Text Clips file.

  3. Insert a new <clip> tag and use the name attribute to identify your new text clip. Example: <clip name=”my first clip”>

  4. Although not mandatory, to ensure proper parsing of your clip you should embed your text clip inside a <![CDATA[ ]]> tag. Your text clip is inserted between of the inner square brackets and may include line feeds, tabs, angle brackets, and other formatting characters. Example: <![CDATA[This is my first text clip!]]>

  5. Complete the text clip by including the closing </clip> tag.

  6. Save the file. You must restart Programmer's Notepad before your edit will take effect.