• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Soft return in XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Soft return in XCode


  • Subject: Re: Soft return in XCode
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 27 May 2010 10:22:14 +0100

On 26 May 2010, at 22:45, Jens Alfke 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”;

Isn't that a GCC extension?  I don't think that one made it into C99...

Your second suggestion, closing and re-opening the quotes is portable.

Kind regards,

Alastair.

--
http://alastairs-place.net



 _______________________________________________
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

  • Follow-Ups:
    • Re: Soft return in XCode
      • From: Scott Ribe <email@hidden>
References: 
 >Soft return in XCode (From: Lorenzo Thurman <email@hidden>)
 >Re: Soft return in XCode (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Soft return in Xcode
  • Next by Date: Re: Soft return in Xcode
  • Previous by thread: Re: Soft return in XCode
  • Next by thread: Re: Soft return in XCode
  • Index(es):
    • Date
    • Thread