<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>It&#039;s Got What Plants Crave &#187; Javascript</title>
	<atom:link href="http://www.itsgotwhatplantscrave.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itsgotwhatplantscrave.com</link>
	<description>Sproutcore and other technologies with electrolytes</description>
	<lastBuildDate>Tue, 16 Feb 2010 21:19:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Multiline strings</title>
		<link>http://www.itsgotwhatplantscrave.com/2008/12/22/multiline-strings/</link>
		<comments>http://www.itsgotwhatplantscrave.com/2008/12/22/multiline-strings/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 03:34:48 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Sproutcore]]></category>

		<guid isPermaLink="false">http://www.itsgotwhatplantscrave.com/2008/12/22/multiline-strings/</guid>
		<description><![CDATA[Javascript is a very strange and often misunderstood language. One of the byproducts of the many different implementations are the many undocumented features. Among these is the very convenient, especially for fixture data, multi-line string. Here&#8217;s how you do it: var s= &#34;\ some text \ some more lines\ want line breaks? \n\ javascript is [...]]]></description>
			<content:encoded><![CDATA[<p>Javascript is a very strange and often <a href="http://javascript.crockford.com/javascript.html">misunderstood language</a>.  One of the byproducts of <a href="http://code.google.com/p/v8/">the</a> <a href="http://msdn.microsoft.com/en-us/library/yek4tbz0(VS.85).aspx">many</a> <a href="http://webkit.org/blog/189/announcing-squirrelfish/">different</a> <a href="http://wordpress.com/tag/trace-monkey/">implementations</a> are the many undocumented features.  Among these is the very convenient, especially for fixture data, multi-line string. Here&#8217;s how you do it:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">  <span style="color: #003366; font-weight: bold;">var</span> s<span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\</span>
          some text <span style="color: #000099; font-weight: bold;">\</span>
          some more lines<span style="color: #000099; font-weight: bold;">\</span>
          want line breaks? <span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\</span>
          javascript is cool<span style="color: #000099; font-weight: bold;">\</span>
  &quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Basically the last character of every line must be a \.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itsgotwhatplantscrave.com/2008/12/22/multiline-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.325 seconds -->
