|
Forum Index : Microcontroller and PC projects : Continuing Code on 2nd line.
| Author | Message | ||||
| KeepIS Guru Joined: 13/10/2014 Location: AustraliaPosts: 1944 |
Is there an editor line formatting character that MM.Basic will recognises and allow breaking a single line of code over two lines to make it readable in the inbuilt editor? Mike. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
| Phil23 Guru Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
No. Not sure what Geoff's stand on this is; Could be very useful, but understand there may be reasons for it's non-existence. Phil. |
||||
| KeepIS Guru Joined: 13/10/2014 Location: AustraliaPosts: 1944 |
Thanks for the quick reply, saved me a lot of wasted time. Mike. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
No, there is not a line continuation character (it would be handy). The reason is that BASIC is line orientated and it is difficult for its syntax to manage a break in the middle. BUT, the easy way to edit long lines is to just position the cursor near the end of the line and hit return so that the line is split. You can then edit both halves and when finished delete the line break so that the line reverts to a single long line. The editor was originally designed to support automatic horizontal scrolling but the screen update was too slow so that feature never made it into production. Geoff Geoff Graham - http://geoffg.net |
||||
| KeepIS Guru Joined: 13/10/2014 Location: AustraliaPosts: 1944 |
Thanks Geoff, makes sense, and I already do that trick with the cursor. Mike NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |