line wrapping
Posted:
Mon Jan 14, 2013 6:28 pm
by DelphiGuy
would someone please give me a heads up as to how to wrap long lines of code to the next line? can't find it on the site. thanks.
Re: line wrapping
Posted:
Mon Jan 14, 2013 6:35 pm
by nerdzero
You can do it with an underscore _
character.
Check the bottom of this how-to page:
http://cobra-language.com/how-to/WriteBasicSyntax/I believe implicit line wraps also happen at binary operators as well now (like +, *, etc).
Re: line wrapping
Posted:
Mon Jan 14, 2013 7:09 pm
by DelphiGuy
ah, thanks. i was searching for the wrong nomenclature. apparently it's called "line continuation".
Re: line wrapping
Posted:
Tue Jan 15, 2013 5:58 pm
by Charles
And for the benefit of anyone skimming this thread, you can implicitly continue lines when inside a method call or collection literal (list, dictionary, set, array).