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:
blank lines
new code selectors
# comments
end <keyword> line of multi-line frame
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:
A line being wrapped
comments being added or removed
Expanding or collapsing the view
Possible implementation
frame numbering should be a responsibility added into renderAsHtml
The numbers should not be prominent e.g. perhaps in grey
Frame number should be highted (or made more prominent somehow) when the focus is on that frame (or a field directly within that frame). Conversely, if you click on any frame number, both the number and the frame will be highlighted. (Setting/clearing of breakpoints etc. will require a right-click pop-up menu.)
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:
new code
selectors# comments
end <keyword>
line of multi-line frameThis 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
renderAsHtml