title: How do I add newlines to a CakePHP script block?
body: <p>With CakePHP, it's possible to insert normal JavaScript by putting the following inside a view:</p>
  
  <pre><code>$this-&gt;Html-&gt;scriptStart(array('inline' =&gt; false));
  echo 'alert("Hello world!");';
  $this-&gt;Html-&gt;scriptEnd();
  </code></pre>
  
  <p>Unfortunately, if you have multiple echo statements, all the text is squashed into 1 long line. Is there any way to split up the lines and insert newlines?</p>
  
  <p>I've already tried adding \n to the end of the echo'd statement to no avail.</p>
  
  <p>I think it's possible to have JS run correctly all in 1 line with proper use of semicolons but it makes for a painful reading and debugging experience.</p>