Search code examples
notepad++

Find multiple lines in Notepad++


Is there a way to find a paragraph?

For instance I want to search for this code:

<?php
    $radio_buttons++;
  }
?>

But when I try to copy that into the search box it only copies the first line, <?php.

It seems like there is definitely a way to do this, but I just can't find it. Maybe it is an addon?


Solution

  • I wrote a multiline search and replace add on for Notepad++, check it out here: http://www.phdesign.com.au/programming/toolbucket-multi-line-search-plugin-for-notepad/

    ToolBucket Screenshot
    (source: phdesign.com.au)