Advanced features
All resources are stored in %HCIROOT%\client\ScriptEditor.
Additional features include:
- Multiple Script Editors can be simultaneously open for several files.
- Tcl keywords, braces, and strings are shown in several colors.
For example, Tcl keywords are displayed in blue color, and braces/brackets are in red color. Clicking a brace/bracket also selects the corresponding brace/bracket.
- On the right-click menu, selecting Add
Proc dialog box, where you specify a Proc Name and select a template. This includes
all proc types. The new proc is appended to the end of the current Tcl file.
See Proc types.
opens the - Clicking on the right-click menu opens a menu of expand/collapse code folds.
- The Tcl language is syntax-related, and assists you in checking for errors, misspellings, mismatched braces, and so on. This can be helpful for users (Tcl programmers) doing coding.
- The TclKeywords folder stores
all auto-complete help resources, and all are named with a Tcl keyword.
- The _fileIndex folder stores all keywords line by line.
- The themes folder stores all theme
definition files. These control the code foreground, background, and
highlighting colors displayed in Script Editor. By default, Script Editor
loads default.xml.
To use another theme, rename the original default.xml file and then rename the other template file as default.xml.
- TclCodeTemplates.xml stores all code
templates. In this file, the
${cursor}
for each template is a placeholder for the cursor. This is where the cursor is located when a code template is inserted.Templates are disabled by setting enabled="false".
- Syntax highlighting and
brace/bracket/single quote/double quote matching are available.
For example, you can use the matching bracket feature to find the end of a
while
loop. - Line numbers provide a method for locating syntax errors. These numbers are located on the left-hand and right-hand sides of the Script Editor.
- A highlight bar is along the right side of the editor that indicates where matches are located in the file.
- When you type characters in the Script Editor, the Auto-Complete window opens to show a matched Tcl keywords list.