Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:13 10 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Continuing Code on 2nd line.

Author Message
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1944
Posted: 05:58pm 11 Aug 2017
Copy link to clipboard 
Print this post

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: Australia
Posts: 1667
Posted: 06:11pm 11 Aug 2017
Copy link to clipboard 
Print this post

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: Australia
Posts: 1944
Posted: 06:16pm 11 Aug 2017
Copy link to clipboard 
Print this post

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: Australia
Posts: 3308
Posted: 07:48pm 11 Aug 2017
Copy link to clipboard 
Print this post

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.

GeoffEdited by Geoffg 2017-08-13
Geoff Graham - http://geoffg.net
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1944
Posted: 07:51pm 11 Aug 2017
Copy link to clipboard 
Print this post

Thanks Geoff, makes sense, and I already do that trick with the cursor.

Mike
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025