3.2 Token Highlighting

Now that we are in the editor, let's first look at token highlighting. The CODE Editor highlights the tokens (specification fields or columns) of the ILE RPG/400 source, providing a separate color for each.

When you open a source member or file, you cannot change it until this token highlighting process is complete.

When you make changes to a line, the colors of the tokens are updated after you move your cursor off the line.

Let's see how token highlighting works.

Follow these steps:

  1. Move the cursor to row 12, column 6.
  2. The status line beneath the menu bar shows the row and column position of the cursor. For example, Row 12 Column 6 Replace indicates that the cursor is on row 12 column 6 and the Editor is in replace mode.

    If the status line indicates the Editor is in insert mode, press the Insert key to toggle back to replace mode. Check the status line to see that it now shows Replace.

    If the status line is not visible, select Options > Controls > Status line from the menu bar.

  3. Enter a space followed by an asterisk (*) over the C.
  4. Move the cursor off the line. The line color changes to the same as that of the comment line.
  5. Position the cursor back one space before the asterisk and type C followed by a space over the asterisk and move the cursor off the line. The line changes back to its original colors. Also, the C is now uppercase if Auto uppercasing is set on under Options > Language editing.
  6. Click on to indicate that you've done all the steps.