elan-language / LanguageAndIDE

Apache License 2.0
3 stars 0 forks source link

Frame numbering ('line numbering') #162

Closed richardpawson closed 2 weeks ago

richardpawson commented 6 months ago

Although many people will, by habit, refer to these numbers as 'line numbers', strictly speaking they will be frame numbers. Each code frame will have a number at the right-hand side of the pane (where it interferes less with the code, visually). For a multi-line frame the number will be alongside the first line. This frame number will also be where breakpoints will be added for debugging.

The following will not have a number alongside them:

This approach means that the highest frame number is a reasonable proxy for the amount of code written (better than l.o.c. in most IDEs).

Frame numbers will change only when frames are added, deleted, or moved. They will not change as a result of:

Possible implementation

richardpawson commented 1 month ago

Working version on new branch 'frameNumbers'