Working with margins

Working with margin aware editing

About this task

When editing HLASM source, you can have z Systems® LPEX display margins as vertical lines before columns 72, 73, and 81:
When you enable margin aware editing, you can change the behavior and continuation character occurrence associated with the Enter key, Split (Alt+S), Join (Alt+J), or Paste (Ctrl+V).
  • For example you can enter or delete text in each margin area without shifting the text in the other margin area.
    • When you set the Enter key to "Split and shift" with a continuation character being added when text follows the cursor (the default settings for margin aware editing), pressing Enter after the E (column 20) in the example above produces the following result:

      Notice how the continuation character was added in column 72 and the text following column 20 (up to column 71) was moved to the following line, leaving column 72 and columns 73 through 80 intact. Deleting the text R9 does not cause the text in columns 72 through 80 to shift to the left.

    • If you had set the Enter key to "Split line" and the continuation character mode to Never add instead, pressing Enter after the E (column 20) would produce the following:
  • The behavior of the join key recognizes HLASM syntax. For example when pressing Alt+J on the end of the first line of the following statement:
    results in the two lines being joined as the following::
    rather than the result of the default LPEX behavior without syntax awareness:
  • Paste also better recognizes HLASM syntax rules, and, for instance, recognizes whether or not the editor is in insert mode rather than replace mode.