title: PhpStorm 2016.2 find and replace multiline text
body: <p>In PhpStorm 2016.2 I have a new project that has been inherited and [badly] needs updating. </p>
  
  <p>There are many pages each with opening line like so (<em>example</em>):</p>
  
  <pre><code>&lt;?
  include ("/inc/db.php");
  </code></pre>
  
  <p>I need to replace this line with several lines such as:</p>
  
  <pre><code>&lt;?php
  include "siteheader.php";
  require "class.myclass.inc.php";
  $dataBase = new DbObj();
  </code></pre>
  
  <p>I have previously simply copy and pasted multiline code into the PhpStorm search/replace function and that's (usually but not always) returned the correct changes, although they're all squished into single lines, making them harder to read (<code>EOL</code> characters are removed).</p>
  
  <ul>
  <li>In this instance am looking specifically at the <em>"replace in path"</em> function as I need to apply this change to many pages. </li>
  </ul>
  
  <p>I have <a href="https://www.jetbrains.com/help/phpstorm/2016.2/find-and-replace-in-path.html" rel="noreferrer">Read the manual</a> but can see no option for this. I think I could possibly use a Regular Expression but this would not be ideal (escapings etc.). </p>
  
  <p>I have also looked but not found a suitable plugin from the <a href="http://plugins.jetbrains.com/?phpStorm" rel="noreferrer">PhpStorm Plugin Repository</a>. </p>
  
  <blockquote>
    <p><strong>Is there a way of searching <em>and/or</em> replacing multiline text in path in PhpStorm 2016.2?</strong> </p>
  </blockquote>
  
  <p>Cheers</p>