<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Something like this might work</div><div class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">//string ends on the first line that doesnt start with a "</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="color: rgb(0, 0, 0); font-variant-ligatures: no-common-ligatures;" class="">foo( </span><font color="#b51a00" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">@</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"&lt;?xml version="</span><span style="font-variant-ligatures: no-common-ligatures;" class="">1.0</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"?&gt;</span></font></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; "&lt;catalog&gt;</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><font color="#b51a00" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">&nbsp;&nbsp; &nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures" class="">" &nbsp; &lt;book id="</span><span style="font-variant-ligatures: no-common-ligatures;" class="">bk101</span><span style="font-variant-ligatures: no-common-ligatures" class="">" empty="</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"&gt;</span></font></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; " &nbsp; &nbsp; &nbsp; &lt;author&gt;\(author)&lt;/author&gt;</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; " &nbsp; &nbsp; &nbsp; &lt;title&gt;XML Developer's Guide&lt;/title&gt;</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; " &nbsp; &nbsp; &nbsp; &lt;genre&gt;Computer&lt;/genre&gt;</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; " &nbsp; &nbsp; &nbsp; &lt;price&gt;44.95&lt;/price&gt;</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; " &nbsp; &nbsp; &nbsp; &lt;publish_date&gt;2000-10-01&lt;/publish_date&gt;</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; " &nbsp; &nbsp; &nbsp; &lt;description&gt;An in-depth look at creating applications with&nbsp; &nbsp; XML.&lt;/description&gt;</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; " &nbsp; &lt;/book&gt;</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><font color="#b51a00" class="">&nbsp;&nbsp; &nbsp; &nbsp; "&lt;/catalog&gt;\n</font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; )</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; line-height: normal; color: rgb(0, 132, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">//additionally using a +" could be used to indicate a line break</span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><div style="margin: 0px; line-height: normal;" class=""><span style="color: rgb(0, 0, 0); font-variant-ligatures: no-common-ligatures;" class="">foo( </span><font color="#b51a00" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">@</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"&lt;?xml version="</span><span style="font-variant-ligatures: no-common-ligatures;" class="">1.0</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"?&gt;</span></font></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&lt;catalog&gt;</font></span></div><div style="margin: 0px; line-height: normal;" class=""><font color="#b51a00" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">&nbsp; &nbsp; &nbsp; +</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"&nbsp;&nbsp;&nbsp;&lt;book id="</span><span style="font-variant-ligatures: no-common-ligatures;" class="">bk101</span><span style="font-variant-ligatures: no-common-ligatures;" class="">" empty="</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"&gt;</span></font></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&lt;author&gt;\(author)&lt;/author&gt;</font></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&lt;title&gt;XML Developer's Guide&lt;/title&gt;</font></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&lt;genre&gt;Computer&lt;/genre&gt;</font></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&lt;price&gt;44.95&lt;/price&gt;</font></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&lt;publish_date&gt;2000-10-01&lt;/publish_date&gt;</font></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&lt;description&gt;An in-depth look at creating applications with&nbsp; &nbsp;&nbsp;XML.&lt;/description&gt;</font></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&nbsp;&nbsp;&nbsp;&lt;/book&gt;</font></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#b51a00" class="">&nbsp; &nbsp; &nbsp; +"&lt;/catalog&gt;\n</font></span></div><div style="color: rgb(0, 0, 0); margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">&nbsp; &nbsp; )</span></div><div style="color: rgb(0, 0, 0); margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div></span></div></span></div><div><blockquote type="cite" class=""><div class="">On May 11, 2016, at 9:48 PM, Ricardo Parada via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><br class="">On May 11, 2016, at 2:34 PM, Vladimir.S &lt;<a href="mailto:svabox@gmail.com" class="">svabox@gmail.com</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">For example:<br class=""><br class=""><br class="">letsourceCode =@“NSString *firstName = @“John”;<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"NSString *lastName = @“Doe”;<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“NSString *fullName = [NSString stringWithFormat: @“%@<br class="">%@“, firstName, lastName];"@<br class=""><br class="">The one that would be a bit of a problem is the closing delimiter,<br class=""></blockquote><br class="">Yes.. this is why I asked about `"@` - closing delimiter<br class="">so.. what is the solution in your case ?<br class=""></blockquote><br class="">Hi Vladimir,<br class=""><br class="">I don't really have a solution. Perhaps escaping the closing delimiter like this \"@<br class=""><br class="">It is not pretty but I can't think of anything else. I imagine the other alternatives, i.e. &nbsp;&nbsp;the triple quote `"""` and the quote plus underscore `"_ ` &nbsp;have the same problem. <br class=""><br class="">If we make the continuation quote required then we don't need a closing delimiter. That would solve the problem. But I've seen several people say they don't like the continuation quote because they want to be able to paste text and not have to worry much about formatting it afterwards. <br class="">_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></div></blockquote></div><br class=""></body></html>