Adding Custom Persistent Highlights
The Author API
includes a class that
allows you to create or remove custom persistent highlights, set new properties for
the
highlights, and customize their appearance. An example of a possible use case would
be if you
want to implement your own way of editing review comments. The custom persistent highlights
get serialized in the XML document as processing instructions, with the following
format:
<?oxy_custom_start prop1="val1"....?> xml content
<?oxy_custom_end?>
This functionality is available through the AuthorPersistentHighlighter
class
that is accessible through the AuthorEditorAccess#getPersistentHighlighter()
method.
For more information, see the JavaDoc details for this class at https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/ecss/extensions/api/highlights/AuthorPersistentHighlighter.html.