Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Optional Background Information:

[ The author of a Java open source project I am using has changed the copyright notice in every file in the project. As a result, I can no longer diff between the older version of the project and the newer version, since every file is marked as different because of the new copyright notice. In order to do a diff with this new version of the project, I first need to remove the copyright notice from every file in the new project and the old project and then perform a new baseline diff from which to move forward. ]

Q: Is there a text editor on Windows that would find and remove this block of text from all of the source code files in the project:

 *  Copyright (C) 2010 Franklin Pierce
 *  This file is part of mexxaco.
 *  mexxaco is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  mexxaco is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  GNU Lesser General Public License for more details.
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with mexxaco.  If not, see <>.
share|improve this question
IIRC, BeyondCompare3 (and probably other diff tools as well) can diff folders/files and ignore comment and whitespace diffs. – yhw42 Oct 15 '10 at 15:01

A couple of options: Eclipse, Notepad++, Dreamweaver. Notepad++ might be the easiest, cheapest approach. Here's a nice article showing Notepad++:

share|improve this answer
I'm using Notepad++ at the moment but it only offers the ability replace a limited number of words - not a large block of text - as far as I have been able to tell. Your link also suggests as much. – marc Oct 15 '10 at 15:05
@marc, you are incorrect. The text box where you enter text is small, but it will support as much as you can copy/paste into it. Poor UI but it does work. – Joshua Oct 16 '10 at 21:28

Ulta Edit has a replace in files. You could use that to remove the copy right. Also BeyondCompare is able to detect comments and ignore them when it does compares.

share|improve this answer
Is the "replace in files" in UltraEdit for words or does it allow blocks of text? As I mentioned to Josh above, I'm using Notepad++ and it has this limiation. – marc Oct 15 '10 at 15:07
It appears to be blocks of text. – Nick Oct 26 '10 at 16:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .