Author action to search and replace in file using regex
Posted: Thu Oct 19, 2017 1:21 pm
I'd like to format my document by applying multiple regular expressions, preferably in text mode (not in author mode). (How) is this possible?
Re: Author action to search and replace in file using regex
Posted: Thu Oct 19, 2017 1:49 pm
An Oxygen plugin has enough API to manipulate the XML contents, either in the Text or in the Author editing modes.
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/