Page 1 of 1

Show entities as tag in author mode

Posted: Wed May 11, 2022 5:35 pm
by pieterjan_vdw
Hi,

I need to review a file with XML and HTML, ie in the 'text' you find several HTML tags like in attached screenshots
Can you easily show these < and > entities as 'tags' in the author mode to make it less easy to make mistakes when correcting it. And if yes, how can I do this?
image.png
image.png (7.69 KiB) Viewed 658 times
image.png
image.png (4.42 KiB) Viewed 658 times

Re: Show entities as tag in author mode

Posted: Thu May 12, 2022 7:20 am
by Radu
Hi,

For > this can be done, you probably already have a custom CSS to edit the XML contents in the Author visual editing mode. You would need to define this namespace on the first line in the CSS:

Code: Select all

@namespace oxy "http://www.oxygenxml.com/extensions/author";
and then add this CSS selector:

Code: Select all

oxy|entity[name='gt'] {
-oxy-display-tags : default !important ;
}
But for &lt; nothing can be done, we show it in the Author mode directly as the "<" character and when serializing we always serialize it as &lt;.

Regards,
Radu