Page 1 of 1

Multiline support for arguments

Posted: Fri Feb 21, 2014 1:51 pm
by va!n
I would like to have (maybe optional) the feature, to write commands with a lot of arguments in multiline, like in C/C++ for CreateWIndow_() as example.
A coma at the end of the line would define, there are more arguments next line, until the ")" is followed.

Re: Multiline support for arguments

Posted: Fri Feb 21, 2014 1:56 pm
by Fred
It already works like that.

Re: Multiline support for arguments

Posted: Fri Feb 21, 2014 9:47 pm
by va!n
Great!! 8) Fred, thanks for having this nice feature!

Re: Multiline support for arguments

Posted: Sat Jan 23, 2021 4:45 pm
by Olli
It would be cool to have an little example here. I do not remember if a special character is required at the end of each line which contained in a composed line...

Re: Multiline support for arguments

Posted: Sat Jan 23, 2021 4:54 pm
by BarryG
Olli wrote:It would be cool to have an little example here. I do not remember if a special character is required at the end of each line which contained in a composed line...
It's in the manual under "General Syntax Rules" -> https://www.purebasic.com/documentation ... rules.html

Image

Re: Multiline support for arguments

Posted: Sat Jan 23, 2021 4:54 pm
by Kiffi
Olli wrote:It would be cool to have an little example here.

Code: Select all

OpenWindow(0, 
           #PB_Ignore, 
           #PB_Ignore, 
           800, 
           600, 
           "", 
           #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget)

Re: Multiline support for arguments

Posted: Sat Jan 23, 2021 9:04 pm
by Olli
Thank you for your 2 answers.