Line Numbers

By default the workbench will not display any line numbers in a program. To reveal the line numbers use the Line Number toggle option on the Line menu.

When enabled, line numbers are displayed at the left of the screen, possibly together with an @ prefix to denote global or a - prefix to denote a referenced line. Apart from compatibility issues, lines and statements may be of any practical length.

To go to a particular line or statement within a line in the editor or debugger window press F2 to go to the command window and just enter the line number or the line number, a comma and the statement number withing the line.

Modifying

There are menu options on the Line Menu to add a line number to the current statement (a suitable line number is automatically generated), delete the line number from the current statement, Edit a line number or to remove all line numbers from the currently selected block. You can also edit a line number by using the mouse to left double-click on a displayed line number in the border.

When adding or editing a line you will be presented with the following dialog:



In this case the line number must fit in with surrounding line numbers, the line will not be moved and the user will not be able to leave the line number dialog until a correct line number is entered.

Backspacing into a line number field from the beginning of a statement deletes the line number. It is not possible to delete the first line number of the program.