Before you begin, you must complete Exercise 3.1: Introducing the editor.
The LPEX Editor has predefined settings, but also has an associated
preferences page containing settings that you can modify. The name of
the category is LPEX Editor and it appears in the left pane of the Preferences
window.
You will change the default settings of LPEX Editor Parsers, Appearance and User Key Actions.
LPEX provides special support for insertion and deletion in column-sensitive languages. When column-sensitive editing is selected, each column is considered as a separate entry space. For example, in an RPG source member, if you are inserting or deleting characters into a string that is in the Factor 2 entry, the Result field entry does not move. The default editor preference is that column-sensitive editing is off. You can switch this support on by going to the workbench preferences window.
Setting column sensitive editing
To set preferences:
The Preferences window opens.
The right pane allows you to set preferences for this feature.
When selected, each column is considered as a separate entry space.
The Preferences window shows.
Other interesting preference settings are located under LPEX Editor. Appearance allows you to modify color settings and font used by the Editor.
Changing the editor appearance
Notice how your changes are reflected in the sample edit view.
This option highlights the line that the cursor is on. The option applies to all source files opened in the editor area.
Modifying the default behavior of the Enter key
To modify the default behavior of the Enter key to split the current line in the source instead of creating a new line:
The Remote System Explorer has a predefined behavior for the Enter
key. For the Enter key to use the new split line action you need to
change the default Remote System Explorer behavior for the ILE RPG
language.
Return to the Editor window.
Seeing the results of column sensitive editing
Notice that the line the cursor is on is now highlighted in the color you
selected for it in the preference setting for highlight current line.
To see what column sensitive editing does:
Notice that only the filename is shifted but none of the other columns to
the right are effected.
Once again the filename is shifted but no other columns are effected.
Seeing the results of splitLine
To see what splitLine does:
The text to the right of the cursor is moved to the next line.
You have changed the default editor settings and now you are ready to begin Exercise 3.3: Entering SEU commands.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.