Re: Soft return in XCode
Re: Soft return in XCode
- Subject: Re: Soft return in XCode
- From: Lorenzo Thurman <email@hidden>
- Date: Wed, 26 May 2010 17:28:56 -0500
Actually, it was option-return in Codewarrior and I think BBEdit,
where you get a soft return. I'm pretty sure that the Applescript
editor respects this as well, at least it used to (Classic OS). You
press the key sequence and you get the visual appearance of a return,
but the string remains unchanged.
Thanks, I should have considered the \
--"My break-dancing days are over, but there's always the funky chicken"
The Full Monty
On May 26, 2010, at 4:45 PM, Jens Alfke <email@hidden> wrote:
On May 26, 2010, at 2:39 PM, Lorenzo Thurman wrote:
In the past, one could simply hit option-enter, but the IDE in
XCode doesn't respect that. How does one go about that? I have a
really long string literal that I'd like break into smaller chunks.
The C language requires that you put a “\” at the end of each
line if a string literal spans multiple lines:
const char *foo = “this is a long \
string literal”;
Or a better way is to take advantage of the fact that the parser
combines multiple adjacent string literals into one; this way you do
n’t have to worry about the indentation characters ending up in the
string:
const char *foo = “this is a log ”
“string literal”;
I’m not sure what option-Enter has to do with this; did I misunderst
and the question?
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden