Page 1 of 1

Better readable formatting for line continuation

Posted: Sun Feb 04, 2018 7:35 pm
by Kurzer
Maybe again a Nitpicker request, but if it will not be written down, nobody will take notice of this. ;-)

The line continuation works in such a way that if at the end of a line there is a plus (+), comma (,), Or (|), And, Or, Xor, the line can be wrapped.

This works great, but in the case of And, Or, Xor it would look better if the new line could start with these commands. In most cases, when using this operators, the first line will be a conditional command and the following lines will hold further conditions for this command.

Image

I refer here to the SQL syntax. With this formatting you can recognize the logic of the whole condition more quickly without looking each line up to the end.
Example of SQL syntax:

Code: Select all

Select a.firstname, a.name, a.age, a.debit
From customers a
Where a.name = 'Smith'
  And a.debit > 300
  And a.age between 18 and 39

Re: Better readable formatting for line continuation

Posted: Sun Feb 04, 2018 9:37 pm
by Mistrel
I agree 100%.

Similar requests:

http://www.purebasic.fr/english/viewtop ... =3&t=66631

and

http://www.purebasic.fr/english/viewtop ... =3&t=61025

More specifically (as related):
http://www.purebasic.fr/english/viewtop ... 36#p514936

Due to the level of verbosity I use, PureBasic has become extremely cumbersome to program with due to my inability to split lines when and where I want to for clarity.

This actually supersedes all of my outstanding feature requests as the greatest frustration I have with PureBasic at this time, as it affects my ability to quickly scan and read my code.