replace code block in many files

Hello !

I have a code block in many files.
I want to replace this block of code in many files with another code block.

For example.
I will replace:

Zend_Session::destroy();
$this->_redirect(Zend_Registry::get('static')->home->system->out."/error/".$e->getMessage());

with

if($e->reaction == 1){
     Zend_Session::destroy();
     $this->_redirect(Zend_Registry::get('static')->home->system->out."/error/".$e->getMessage());
}

Unfortunately, the entry under 'Search' is -> 'Replace' too small.

Who can help with an idea ?


Your sincerly

Stephan

0
3 comments

The search/replace field is only 1 line, but you can actually copy/paste multiple line code blocks into it.

It's a bit of a bug, because search/replace should be a multi-line box if you ask me, but it works.

0

Hello !

Thanks for the info.

I have taken a other tool. :8}

I think. It is important to 'replace' tool to work on.
It must be possible to process large blocks of script.
It must be possible to edit this block in the file, directory or the project.

Your sincerly

Stephan

0

Please sign in to leave a comment.