02-02-2023, 02:33 PM
From armchair distance, code-folding might not be difficult to do after all. Store each BASIC file line(*) as a numerical array, for which ones to display. The "folded" lines are then excluded from this array. (shrugs)
(*) A "line" is at the mercy of the newline character at the end. More tricky would be to account for the underscore that allows continuation of a very long "IF... THEN" statement or something else.
But then this could add to the IDE's memory requirements. Also the auto-complete. I've seen it in Openoffice/Libreoffice: when the user starts submitting words into a list, because he/she is annoyed with the spell-checker or whatever, that list could become large very soon. Binary search is wonderful but the overhead could begin to build up when the list has to be referred to multiple times in a single code line the programmer is typing into. Another thing is how to show the auto-complete: just type the rest of the text out, or show it in a nice-looking temporary pop-up?
Another possibility is "split" view, like QuickBASIC supported, limit to one large source code file viewed in two different places. Maybe expand that to show that source code in one pane, and an include file in the other pane.
(*) A "line" is at the mercy of the newline character at the end. More tricky would be to account for the underscore that allows continuation of a very long "IF... THEN" statement or something else.
But then this could add to the IDE's memory requirements. Also the auto-complete. I've seen it in Openoffice/Libreoffice: when the user starts submitting words into a list, because he/she is annoyed with the spell-checker or whatever, that list could become large very soon. Binary search is wonderful but the overhead could begin to build up when the list has to be referred to multiple times in a single code line the programmer is typing into. Another thing is how to show the auto-complete: just type the rest of the text out, or show it in a nice-looking temporary pop-up?
Another possibility is "split" view, like QuickBASIC supported, limit to one large source code file viewed in two different places. Maybe expand that to show that source code in one pane, and an include file in the other pane.