Keywords can be highlighted using colors and font styles (boldface type).
Highlight colors can be set for the following items.
Item | Explanation |
---|---|
line comment | Lines beginning with // are handled as single-line comments. |
Multiple-line comment | Text enclosed by /* and */ is handled as a multiple-line comment. |
Reserved word | Uppercase and lowercase letters are distinguished in reserved words. |
String literal | A character string enclosed between ' ' or " " is handled as a string literal. |
Displaying the highlight color settings
The highlight colors settings for the above items can be displayed as follows:
Select "Window" > "Preferences" from the menu bar. The "Preferences" dialog box is displayed.
Select "IDL" > "Editor" in the left pane. The "Editor" page is displayed.
Click the "Colors" tab. The "Items", "Color", "Bold", and "Preview" areas are displayed.
When an item is selected, styles are displayed for the set "Color" and "Bold". The current settings are displayed in "Preview".
Changing the highlight color settings
The color settings for the above items can be changed as follows:
To change the display color of an item, select the item from "Items".
Click "Color". The "Color" dialog box is displayed.
Click the target color in the "Basic colors" pallet. Alternatively, click "Define Custom Colors" to create the desired color.
To apply the selected color and close the dialog box, click "OK". The selected color is reflected in the "Preview" area. To close the dialog box without applying the selected color, click "Cancel".
To display the text in boldface type, select "Bold".
Note
By default, reserved words are displayed in boldface type, and all other items are displayed in the normal font style.
The settings remain in effect even after the next time the editor is opened.