Author action to search and replace in file using regex

<oXygen/> general issues.
xephon
Posts: 95
Location: Hamburg/Germany

Author action to search and replace in file using regex

Thu Oct 19, 2017 1:21 pm

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
Join the DOCTALES DITA development team :arrow: https://doctales.atlassian.net/wiki
Radu
Posts: 5088

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

Thu Oct 19, 2017 1:49 pm

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-javascript-sample-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

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 1 guest