The Insert menu




Code Template

Code templates are reusable chunks of code which can greatly increase your speed of coding. You can insert a code template into your document in two ways:

  • Type the first few letters of the template and press Ctrl+Space. This will pop a list with all the matching templates - select one of them and press Enter, e.g.:

  • Or: select Insert / Code Template from the menu (or press Ctrl+T) to open the Code Templates dialog:

 Type in the first few letters, or double-click the name of the template to insert it into your document.

Manage Code Templates

This option allows you to add new templates, or modify or delete the existing ones.

Tip: If you already have code templates stored in text files, you can just copy the files to the CodeTemplates directory.
Tip: To convert text from the current document into a code template, select the text and press Shift+Ctrl+T.


Date
Inserts the current date into the document.
Time
Inserts the current time into the document.
Date and Time
Inserts the current date and time into the document.
 


Color (Hex)
Opens the color dialog to allow you to select the color to be inserted into the document in the hexadecimal format. This format is most commonly used for Web pages.
Color (RGB)
Opens the color dialog to allow you to select the color to be inserted into the document in the RGB format. This format is commonly used in C/C++ and other programming languages.