View Full Version : Starting with the Propeller -- Is there a "line continuation" character?

05-22-2008, 10:15 PM

Well, I've launched into a new adventure with Parallax -- using the Propeller chip. Frankly, the name was rather off-putting, but we've had that discussion already elsewhere.

One suggestion -- the Spin code IDE just cries out for a "line continuation character". I think VB uses an "&" or a "_" at the end of a line, to indicate that the line doesn't logically end there, but the next physical line should be appended to it.

Places I've felt this would be useful are in "IF" statements, where ALL the 'clauses' MUST be on the same line. I've also had a problem with Parameter Lists (not my own, but other people's) of 6 or more "Local" variables, where the line gets really long.

I hope this is a possibility in the next release of the IDE.

Meanwhile, I've implemented a "ConTEXT" syntax highlight file, if people want to try another editor.

Post Edited (allanlane5) : 5/22/2008 3:28:01 PM GMT

05-22-2008, 10:31 PM
There's no continuation character but curly brackets can be used ...

waitpne( {
} 0, {
} 1, {
} 1 {
} )

Not perfect but can get one out of otherwise aesthetically nasty situations.

05-23-2008, 01:02 AM
Curly brackets are the multi-line comment character. And they work that way? Thanks!

<Edit> Just tried it -- that's absolutely brilliant, and completely fixes the problem. Thanks again.

Post Edited (allanlane5) : 5/22/2008 6:09:54 PM GMT

05-23-2008, 03:13 AM
That is an interesting trick. I don't think I knew about that...

05-23-2008, 09:08 AM
Not sure who gets credit for it, but it wasn't my discovery.