STF plug-in offers a user-friendly editor for manipulating
script files. The editor provides users
with syntax highlighting, code assistant, syntax checking and other features
that make working with scripts easier and more efficient.
To use the STF Script Editor simply open the .cfg file in the Carbide.c++
environment (File -> Open File...).
The STF Script Editor will start and display the file. See the figure below for an example.
Script Editor
As shown in the figure above, the editor offers code highlighting for keywords. For the set of keywords that will be highlighted, see Script Keywords.
The editor lets you fold test cases. A test case can be
collapsed by clicking the minus "-" sign next to the given test case.
The figure below presents a collapsed test case:
The test cases can be expanded to the previous form by clicking the plus "+"
sign next to the given test case.
The Outline view presents a list of test cases that the current file contains.
You can move the cursor to the selected test case by clicking its associated
label in the Outline view:
The editor checks the syntax of the script. If an error is found then any line
containing it is marked and a comment is added to the Problems window. The
figure below shows how the editor points to the errors:
The STF Script Editor provides users with code assistance. The suggestions of the
code assistant, depending on the current context, can be displayed by pressing the
CTRL + SPACEBAR combination on the keyboard.
The figure below shows code assistant window with suggested words
for the current context: