Show entities as tag in author mode

Post here questions and problems related to oXygen frameworks/document types.
pieterjan_vdw
Posts: 35
Joined: Wed Jun 20, 2018 11:30 am

Show entities as tag in author mode

Post 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 105 times
image.png
image.png (4.42 KiB) Viewed 105 times
Radu
Posts: 8010
Joined: Fri Jul 09, 2004 5:18 pm

Re: Show entities as tag in author mode

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply