Setting margin preferences
You can use the Margins preference page to have z Systems® LPEX Editor display margins and use margin aware editing when editing HLASM code.
About this task
Procedure
- In the navigation pane of the Preferences window, double-click the LPEX Editor node to open the tree of available preference pages.
- Double-click the z Systems LPEX Editor node to open the tree of available preference pages.
- Double-click on the HLASM Parser node to open the tree of available preference pages, then click on Margins to open the Margins preference page.
- Specify whether you want margins to be displayed by selecting Show margins. Selecting this option displays a margin line before columns 72, 73, and 81.
- Specify whether you want to enable margin aware editing by selecting Enable margin aware editing. If you select this option, the editor will not shift text in columns 72 or 73 through 80 unless you are editing in those columns.
- Specify whether you want to disable margin
editing while editing comments by selecting Ignore margins
when editing comments. Note: This setting applies only to full-line comments and not remarks.
- Specify the required Enter key behavior, as follows:
- Default: the default LPEX behavior (this depends on the LPEX profile being used)
- Split and shift: splits the line and indents the cursor (or remaining text) to the following line. Only text before the next margin line is affected
- Split line: splits the line and positions the cursor to the start of the next line. Only text up to the margin is moved to the next line
- Open new line: inserts a blank line following the current line and places the cursor in column 1
- Specify how you would like continuation characters to be
added when pressing Enter (this option applies only to split
options), as follows:
- Never: never inserts a continuation character
- Always: always inserts a continuation character
- Only when text follows cursor: inserts a continuation character only when text follows the cursor when Enter is pressed
- Specify the required split key behavior, as follows:
- Default: the default LPEX behavior (this depends on the LPEX profile being used)
- Split and shift: splits the line and indents the cursor (or remaining text) to the following line. Only text before the next margin line is affected
- Split: splits the line and leaves the cursor in its current position. Only text up to the margin is moved to the next line
- Split line: splits the line and positions the cursor to the start of the next line. Only text up to the margin is moved to the next line
- Specify how you would like continuation characters to be
added when pressing Alt+S (this option applies only to split
options), as follows:
- Never: never inserts a continuation character
- Always: always inserts a continuation character
- Only when text follows cursor: inserts a continuation character only when text follows the cursor when Enter is pressed
- Specify the required join key behavior, as follows:
- Default: the default LPEX behavior (this depends
on the LPEX profile being used)
- Join to column 72: this option attempts to join the line within the 72 margin, if possible, and handles.
- Default: the default LPEX behavior (this depends
on the LPEX profile being used)
- Specify the required paste behavior, as follows:
- Default: use the LPEX default behavior
- Respect margins: attempts to do a smart paste,
such that text in different margin areas are not shifted when a paste
occurs. If the statement being pasted is greater than 72 characters,
the statement is pasted into column 1
- Ignore margins: performs the paste as if margins were not enabled, ignoring HLASM syntax.
- Specify if a paste should ignore whether the cursor is in insert mode by selecting Ignore insert mode. Normally a paste replaces any selected text. Leave this option unchecked to ensure that the paste action does not replace selected text when the editor is in Insert mode.
- Specify if sequence number area (columns 0 - 10) and information area (column 73 and onwards) are ignored when comparing two remote HLASM files.