Changing Source Code Appearance Options

The Editor lets you customize how the specific code segments appear during an editing session. For example, when editing a 4GL form definition file, you can choose whether to fill 4GL tabs with spaces.

To customize source code appearance

  1. Press Define (F6).
  2. Select Options (E).
  3. Select Source (B).

    The Source Code User Options form appears.

  4. Select an option from the list that appears, as described in the following table.
    Choose To edit options for
    4GL Procedure PD (Procedure Description) files and libraries.
    4GL Working Storage WS (Working Storage) files and libraries.
    4GL Form .scr (form definition) files.
    4GL Report .rpt (report definition) files.
    4GL Form Rule .sr (form rule) files.
    4GL Object Rule .or (object rule) files.
    c .h (header) and .c (C code) files.
    Text all other files.
  5. Move to one of the options listed in the following table.
  6. Type or Select (F4) an option from the list of available options.
    Option Default setting Available option(s)
    Auto Indent

    On

    Automatically indents a new line.

    Off

    Does not automatically indent a new line.

    Blink Long

    On

    Blinks if line exceeds maximum length of 72 characters.

    Off

    Does not blink if line exceeds maximum length.

    4GL Tabs

    On

    Uses 4GL tab stops.

    Off

    Does not use 4GL tab stops.

    Fill Tabs

    Off

    Does not fill auto indent tabs with spaces.

    On

    Fills auto indent tabs with spaces.

    Uppercase Lock

    On

    Uses all uppercase.

    Off

    Uses uppercase and lowercase.

    Match Parenthesis

    Off

    Does not show matching parentheses, brackets, and braces.

    On

    Shows matching parentheses, brackets, and braces.

    Man Pages

    Off

    Does not open manual pages on tag finds.

    Window

    Opens manual pages in window.

    Pager

    Shows manual pages with $PAGER.

    Shift Width

    4

    Number of spaces to shift text when the Shift option is chosen from a menu or key.

    1–99

    Number of spaces to shift text when the Shift option is chosen from a menu or key.

    Tab Stops

    4

    Size of a tab if not using 4GL tabs.

    1–99

    Size of a tab if not using 4GL tabs.

  7. Press OK after making changes to a Source Code User Options form.

    The system requests confirmation of the changes.

  8. Type Y and press OK to save the changes for use during this session and later sessions.

    - or -

    Type N and press OK twice to use the changes during this session only.

    - or -

    Type C and press OK to cancel the changes.