QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: badger on October 08, 2020, 05:03:06 pm

Title: long lines
Post by: badger on October 08, 2020, 05:03:06 pm
Hello

can we break up lines that is bigger than the screen and put the rest of it on the next line of the program


Badger
Title: Re: long lines
Post by: SpriggsySpriggs on October 08, 2020, 05:04:25 pm
Use an underscore at the end of your line to continue like this:

Code: QB64: [Select]
  1. PRINT "This is a long line of text......"+_
  2. "and this is part of the original print statement"
Title: Re: long lines
Post by: badger on October 08, 2020, 05:05:38 pm
Hello

Thanks very much my friend

Badger
Title: Re: long lines
Post by: Pete on October 09, 2020, 07:27:01 am
You can always count on Zach to underscore the solution to the problem. Me, the only thing I underscored on was my S.A.T.s. Actually, I sat out the S.A.Ts. I was too busy coloring.

Pete
Title: Re: long lines
Post by: Dimster on October 09, 2020, 11:00:39 am
Insterestly, the "?" used with "+_" at the end of sentence will output correctly but the "?" does not translate to "PRINT" back in the actual program code.
Title: Re: long lines
Post by: bplus on October 09, 2020, 11:10:30 am
Insterestly, the "?" used with "+_" at the end of sentence will output correctly but the "?" does not translate to "PRINT" back in the actual program code.

After first line, I've noticed allot of the formatting lost without loss of function.
Title: Re: long lines
Post by: SpriggsySpriggs on October 09, 2020, 11:40:34 am
After first line, I've noticed allot of the formatting lost without loss of function.
True. It's weird. Sometimes it really bugs me because I love everything being formatted a certain way. I've just noticed that the IDE can slow to a crawl trying to scroll horizontally to the end of the line if it is too long.
Title: Re: long lines
Post by: FellippeHeitor on October 09, 2020, 04:48:54 pm
Lines continued with the underscore character are indeed ignored by the auto formatter.
Title: Re: long lines
Post by: RhoSigma on October 09, 2020, 05:23:18 pm
Maybe it makes it into the next release:
https://www.qb64.org/forum/index.php?topic=2103.msg113469#msg113469
Title: Re: long lines
Post by: OldMoses on October 10, 2020, 08:02:35 pm
Lines continued with the underscore character are indeed ignored by the auto formatter.

I noticed that in the loss of the auto tabbing on the continued line.