BASIC - Label Mode

Clicking on the toggle button "Label Mode" toggles the Basic editor between common line numbered and label mode. This only works if the listing can be compiled. Any line number references are replaced with labels, and vice versa.
When one of the labels cannot be resolved the toggle is aborted.

C64Studio will fix labels/line numbers with GOTO, GOSUB, ON .. GOTO, ON .. GOSUB, RUN .. and after THEN.



A simple BASIC file with line numbers



After changing to label mode