In the
Silk Performer menu, click
Settings
> System.
Click the
Layout tab.
Use the
Editor area to customize how the editor behaves when you manually insert text into a script file.
In the
Tab size field, enter the number of space characters that equal one tab character.
Select the
Auto indent option to automatically insert indents in your test script.
Each time you create a new line in a script file, the line is automatically indented the same number of spaces as the previous
line.
Select the
Replace tabs with spaces option to automatically insert four spaces each time a tab is used in a test script. This option makes it easier to view
script files in a text editor.
Select
Enable CodeCompletion to have functions, variables, and constants completed for you automatically when you enter text into BDL files.
Click the
Font & Colors button to select a font and style for the
Silk Performer script editor.
You can select a different color to use for each type of content in a test script.
The
Editor Font and Colors Settings dialog opens.
From the
Text type list, select the type of text for which you want to adjust the font, size, style, and color.
Choose one of the following:
Normal Text - Identifiers and symbols.
Keywords - Predefined statements.
Custom Keywords - Words added to the keyword list by the user.
Numbers - Whole numbers and floating-point values.
Comments - Notes in explanation included in a script.
Strings - Sequence of characters delimited by " characters.
From the
Font name,
Font size,
Style, and
Color list boxes, select the format options you want to use for the currently selected text type.
Click
OK.
You can add keywords to the
Custom keywords list. These keywords will display in the script with the styles you have defined in the
Editor Font and Colors Settings.