Enabling or Disabling Syntax Highlighting in the Script Editors

InstallShield 2014

InstallShield lets you specify whether you want the script editors in various views in InstallShield to display script files with color attributes that identify keywords, comments, strings, and other script elements. Each category is displayed in a different color so that you can easily identify them.

This functionality—called syntax highlighting—helps to improve the readability and context of code. In addition, it can help you avoid errors that are caused, for example, when you attempt to use a reserved word as a user-defined identifier. It can also help you locate other errors in your script, such as misspelled keywords, missing quotation marks at the end of a string, and missing comment characters.

Tip: Note that the script editor properties are global per-user settings that affect all InstallShield script editors. For example, the same syntax highlighting and color settings are used for all script editors. If you change the settings in the SQL Scripts view, the settings are also changed in the InstallScript view the next time that the InstallScript is reloaded in that view.

To specify whether syntax highlighting should be enabled in the script editors:

1. Right-click in the script editor pane and click Properties. The Script Editor Properties dialog box opens.
2. In the Syntax highlighting setting, select the appropriate option:
YesInstallShield uses the syntax highlighting that is defined in the Colors area of the Script Editor Properties dialog box in all of the script editors. This is the default option.
NoInstallShield does not use any syntax highlighting in any of the script editors.
3. Click OK. The Script Editor Properties dialog box closes.

InstallShield enables or disables syntax highlighting in the script editors as needed.

InstallShield lets you define the foreground color and background color that is used for each script word category. To learn how, see Changing Colors for Syntax Highlighting in the Script Editors.

See Also