What about using "find in project" ?
shift + cmd + F
or
edit>find>find in project
moom wrote:
Hello. How can I find and replace multiple lines of code in the project.
Like this:
<ul> <li></li> <li></li> <li></li> <li></li> <li></li> </ul>
TextMate supports searching multiple lines of code in the project? Normal searching can do it, but finding that in the project can not.
Do You have any advice please?
On 2011-06-29 20:37, pier25 wrote:
What about using "find in project" ?
shift + cmd + F
I think the question is about the dialog box. The document Find dialog has a little toggle to open up multi-line search and replace fields. The Find In Project dialog doesn't have this.
The same functionality is there, though, even though the input is only one line high. You can paste in a multi-line string, or highlight a multi-line string in the document and press ⌘E (Edit → Find → Use Selection for Find).
Or use regular expressions and enter "\n" in place of carriage returns.
On Jun 30, 2011, at 1:20 PM, Steve King wrote:
The same functionality is there, though, even though the input is only one line high. You can paste in a multi-line string, or highlight a multi-line string in the document and press ⌘E (Edit → Find → Use Selection for Find).
Or use regular expressions and enter "\n" in place of carriage returns.
You can also type a line break with Opt-Return. Again, you'll only see one line at a time, but this way you can type it in if that's the best approach.