Formatting PL/I code elements

Use the Formatter preference to specify preferences for formatting code in the editor.

Procedure

  1. Click Window > Preferences > PL/I > Editor > Formatter.
  2. Select the Indentation tab to specify indentation for the code elements.
    Enable indentation
    Select this option to specify indentation options. The Preview area shows the effect of the preferences specified.
    Left margin
    Type an integer 2-10 to define the last column of the left margin.
    Indent length
    Type the number of indentation spaces for each level language element when nested. Valid values are 0-10.
    Indent data hierarchies
    Select this option to indicate that data structures are indented. The Data hierarchy indent length defines the number of spaces the structures are indented. Valid values are 0-10.
    Indent EXEC blocks
    Select this option to indicate that EXEC statements are indented.
  3. Select the Capitalization tab to set capitalization options for some language elements in the editor.
    • Upper
    • Lower
    • Mixed, which is a mix of uppercase and lowercase characters, for example: FirstLast or firstLAST.
    • None

    The default value for the reserved word, user-defined word, function, date format, and complier directive language elements is uppercase. The default value for comments is none.

  4. Click Apply when finished to save your changes.

Feedback