title: javascript add carriage returns to string for readability
body: <p>I am wondering if this is possible and if so how, I have a long string and for maintainability and readability purposes I want to put newlines into the code like so:</p>
  
  <pre><code>slices += 
      '&lt;div 
          class="'+settings.sliceClass+'"
          style="
              width:' + slicewidth + 'px;
              height:' + sliceheight + 'px;
              left:' + left + 'px;
              top:' + top + 'px;
      "&gt;&lt;img src="'+slide.properties.src+'"
          style="
              position: relative;
              left:' + -left + 'px;
              top:' + -top + 'px;
              width:' + Math.round(slide.properties.image.width * slide.properties.scale.width) + 'px;
              height:' + Math.round(slide.properties.image.height * slide.properties.scale.height) + 'px;
      "&gt;
      &lt;/img&gt;&lt;/div&gt;'
  );
  </code></pre>
  
  <p>I am not expecting these newlines to appear in the HTML output.</p>
  
  <p>However this returns a <code>SyntaxError: Unexpected EOF</code>. </p>
  
  <p>Is there anyway to do this?</p>