Target oxy_comment PIs with CSS rules?

Are you missing a feature? Request its implementation here.
kai_weber
Posts: 24
Joined: Tue May 05, 2020 9:57 am
Location: Tübingen, Germany
Contact:

Target oxy_comment PIs with CSS rules?

Post by kai_weber »

Is it possible to target the processing instructions "oxy_comment_start" and/or "oxy_comment_end" with a CSS rule in a framework, or do those processing instructions have a special status, due to their nature of being firmly built into oXygen and therefore cannot be modified?

It seems with a CSS rule like the following I couldn't add anyting to the comment display in author mode of oXygen v25:

Code: Select all

oxy|processing-instruction[oxy_comment_start]::before {
  color: red;
  display: block;
  content: "Here's my general message about your usage of oXygen comments..."
}
Also something as simple as this doesn't seem to work:

Code: Select all

oxy|processing-instruction[oxy_comment_start] {
    display: none;
}
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Target oxy_comment PIs with CSS rules?

Post by Radu »

Hello Kay,

Such Oxygen specific change tracking, comment and highlight processing instructions once loaded in the Author mode disappear as processing instruction nodes, they remain as special highlights which cannot be matched from the CSS.
We have special Java based APIs which would allow taking control over how these highlights are painted and displayed.

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