Key words can be highlighted with colored characters or with a bold font style. The following table lists the items that can be highlighted.
Item | Description |
---|---|
If "*" or "/" is in the indicator area at the beginning of a line, the entire line is commented out. If "D" or "d" is in the indicator area at the beginning of a line, the entire line is commented out, regardless of whether the line contains debugging information. | |
If a line contains "*>", the part from that point to the end of the line is treated as a comment in the line. | |
A reserved word list is defined for each COBOL version. For reserved words, see the NetCOBOL Grammar. Reserved words are not case-sensitive. | |
SPACE, SPACES, ZERO, ZEROS, ZEROES, HIGH-VALUE, HIGH-VALUES, LOW-VALUE, LOW-VALUES, QUOTE, QUOTES, ALL | |
LINAGE-COUNTER, PROGRAM-STATUS, RETURN-CODE, SORT-STATUS, EDIT-MODE, EDIT-OPTION, EDIT-OPTION2, EDIT-OPTION3, EDIT-COLOR, EDIT-STATUS, EDIT-CURSOR, LINE-COUNTER, PAGE-COUNTER, SORT-CORE-SIZE | |
Character string | A character string is defined with any of the following formats: |
Displaying the highlight setting
To display the highlight setting:
Select "Window" > "Preferences" from the menu bar. The Preferences dialog box appears.
Select "COBOL" > "Editor" in the left pane. The Editor page is displayed.
Click on the "Colors" tab. The Foreground, Color, Bold, and Preview areas are displayed.
Select an item in the Foreground area. The associated style is displayed in the Color and Bold areas. The current setting is displayed in the Preview area.
Note
By default, reserved words are displayed in bold characters, and other items are displayed in the normal style.
Changing the highlight setting
To change the highlight setting:
In the Foreground area, select the item whose highlight setting is to be changed.
Select "Color". The "Color" dialog box appears.
Select the color to be applied from the "Basic colors" palette. A color can be created by selecting "Custom colors".
To apply the selected color and close the dialog box, click the "OK" button. The selected color is reflected in the displayed contents of the dialog box. To close the dialog box without applying the selected color, click the "Cancel" button.
To display text in bold characters, select "Bold".