You can edit any text or binary file directly in PowerGREP, just like you would in a text editor or a hexadecimal editor. PowerGREP's editor has all the features you'd expect: word wrapping, line numbering, syntax highlighting, block editing, unlimited undo, etc.
Highlight, Replace and Revert Matches
The key benefit of using PowerGREP's built-in editor is that you can easily inspect the full context of each highlighted search match. Click the Next Match and Previous Match buttons to quickly navigate through all matches in the file. Match highlighting persists even when you edit the file.
After previewing or executing a search-and-replace action, you can conveniently replace or revert individual matches. Simply click on the match, and then click the Replace or Revert button in the editor. To replace just a few of the search matches, preview the action and then replace individual matches. To replace most search matches, execute the action (which replaces all matches), and then revert those individual matches that you didn't want to replace. Of course, you can also replace or revert all matches in a file with just one click.
PowerGREP's method of replacing and reverting individual matches is far more intuitive than the way most Windows search-and-replace tools work. The typical Windows grep tool forces you to answer a Yes/No question popping up for each search match, in the order that matches are found. PowerGREP gives you the opportunity to replace and revert matches in any order, whenever you want, with full editing access to the file.
If you save the results into a PowerGREP Results file, you can open the results days or weeks later, and still see each match highlighted. You'll still be able to replace or revert individual matches, if your earlier decisions didn't turn out too well.
The screen shots show the Editor panel docked side-by-side with other parts of PowerGREP. You can rearrange the panels to make the editor take up the full screen or drag it off to a second monitor to maximize your editing space.
Open Files in External Applications
You can instantly open any file in its default application, by right-clicking on it in PowerGREP. You can also configure any number of external editors for opening files of specific types, or any kind of file.
|Editing an HTML file with search results in PowerGREP’s built-in file editor|
|Editing a binary file with search results in PowerGREP’s built-in file editor|