Change Script Editing Options
You can control the formatting HotDocs uses when you write scripts. For example, you can designate the font size of the text used in the script editor, as well as associate colors with certain types of script keywords, placeholders, components, or operators.
To change the options available for writing scripts
- At the HotDocs library, click the Options button. The HotDocs Options dialog box appears.
- Double-click the Template Development folder. The folder expands to show a subfolder named Script Editor.
- Click the Script Editor folder. The window changes to show several options for customizing HotDocs scripts.
- Perform any of the following tasks:
To | Do This |
Have HotDocs start the next line of a script (after you enter a return) at the same level of indentation | Select Automatic indentation. |
Include keywords for months, language codes, and so forth in the auto-complete list | Select Include seldom-used keywords in auto-complete list. (If you'd rather exclude these keywords from the list, clear this option.) |
Allow the Tab key to insert a tab in a script, rather than move you to the next field in the component editor | Select Tab key inserts a tab in scripts. Now, whenever you press Tab or Shift+Tab, HotDocs will insert a tab in the script.
This number must be between 1 and 15. If you select this option, you can no longer use keyboard commands to move from the Script field to another field in the component editor. You must use your mouse to click out of the Script field. |
Specify the number of characters HotDocs should use when you insert a tab in the script | Enter a number in the Tab width field. |
Have HotDocs use colors to differentiate between instruction and expression keywords, operators, and component names | Select Syntax coloring. (You can then either accept the default colors HotDocs assigns to these, or you can designate your own colors at the Colors and Attributes list.) |
Assign colors and other formatting attributes to the various parts of a script
These "parts" include instruction keywords, expression keywords, components (such as variables and dialogs), text values (literal text strings), other values (such as literal number and date values and language codes), placeholders, operators, commented scripts, and any syntax HotDocs doesn't recognize. |
Select the item, click the Color drop-down button, and choose a color. You can also select Bold to make the item bolded, and you can select Italic to italicize the item.
To restore the HotDocs defaults, select the script element, click the Color drop-down button, and choose Default from the top of the Palette tab. |
Specify the font used for the script | Click Select Font and make your selection. You can also specify the size of the script text. |