Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

5.1 Highlighting Key Words

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

Comment line

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.

Comment in a line

If a line contains "*>", the part from that point to the end of the line is treated as a comment in the line.

Reserved word

A reserved word list is defined for each COBOL version. For reserved words, see the NetCOBOL Grammar. Reserved words are not case-sensitive.

Figurative constant

SPACE, SPACES, ZERO, ZEROS, ZEROES, HIGH-VALUE, HIGH-VALUES, LOW-VALUE, LOW-VALUES, QUOTE, QUOTES, ALL
Figurative constants are not case-sensitive.

Special register

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
Special registers are not case-sensitive.

Character string

A character string is defined with any of the following formats:
" ",B" ",X" ",N" ",NC" ",NX" "
Character strings are not case-sensitive. Single quotation marks or double quotation marks can be used.

Displaying the highlight setting

To display the highlight setting:

  1. Select "Window" > "Preferences" from the menu bar. The Preferences dialog box appears.

  2. Select "COBOL" > "Editor" in the left pane. The Editor page is displayed.

  3. Click on the "Colors" tab. The Foreground, Color, Bold, and Preview areas are displayed.

  4. 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:

  1. In the Foreground area, select the item whose highlight setting is to be changed.

  2. Select "Color". The "Color" dialog box appears.

  3. Select the color to be applied from the "Basic colors" palette. A color can be created by selecting "Custom colors".

  4. 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.

  5. To display text in bold characters, select "Bold".