Author action to search and replace in file using regex

Oxygen general issues.
xephon
Posts: 159
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Author action to search and replace in file using regex

Post by xephon »

Hi,

I'd like to format my document by applying multiple regular expressions, preferably in text mode (not in author mode). (How) is this possible?

Greetings,
Stefan
stefan-jung.org – Your DITA/DITA-OT XML consultant
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author action to search and replace in file using regex

Post by Radu »

Hi Stefan,

An Oxygen plugin has enough API to manipulate the XML contents, either in the Text or in the Author editing modes.
We have a GitHub repository of Javascript-based Oxygen plugins:

https://github.com/oxygenxml/wsaccess-j ... le-plugins

One of the plugins there is called "contributePopupActionTextPage", it contributes a new contextual menu action to the Text editing page, action which when invoked takes the selected text content, changes it and inserts it back.

The plugins work using Oxygen's Java-based API:

https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply