Custom CSS selector to distinguish Tag display mode

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
honyk
Posts: 168
Joined: Wed Apr 29, 2009 4:55 pm

Custom CSS selector to distinguish Tag display mode

Post by honyk » Fri Oct 05, 2018 12:53 pm

I'd like to apply some CSS formatting. It should be applied in all tag display modes except 'No Tags' mode. Is there any internal selector for this?

Radu
Posts: 6708
Joined: Fri Jul 09, 2004 5:18 pm

Re: Custom CSS selector to distinguish Tag display mode

Post by Radu » Mon Oct 08, 2018 11:27 am

Hi,

We do not have this functionality for now. But we do have plans to add in a future version some specific CSS pseudo classes to allow matching various CSS selectors depending on the tags mode. So we'll update this forum thread when a fix is available.
In the meantime, using our Java-based Author SDK it might be possible to add a listener which gets triggered each time before the tags display mode changes. And when the mode changes we have API which could allow you to set a pseudo class attribute on the XML root element, after this you would be able to write your selectors something like:

Code: Select all


:root:no_tags elementName{
....
}
So if you are comfortable with using Java I could try to give you more details about this.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply