Patrick Ben Koetter wrote:
> I am sitting here before the German translation of my Postfix book and will
> rip out vi in a minute to search for a text string in order to replace it with
> <sometag>string</sometag>.
> 
> Ideally I would be able to do that with XXE. That would really ease my life a
> lot.

The possibility to record a macro-command and to replay it, has been
created to do that (among many other things).

This facility is found in XXE V2.11 released today.

Procedure:

[1] Tools|Record Macro|Start

[2] Use the Search tool to search "string".
Once found stop the search by clicking on button "Stop" in the Search tool.

[3] Use the Edit tool to convert selected "string" to <sometag>.

[4] Tools|Record Macro|Stop

[5] Tools|Record Macro|Replay as many times as needed (or until the
search step fails).

After some thinking, we have found that implementing a general purpose
Record Macro facility was the best way to support all sorts of advanced
search/replace tasks.

---
PS: I CC-ed the support list because your request feature is for us the
opportunity to tell other users about the new Record Macro facility.


Reply via email to