Page 1 of 1

Target oxy_comment PIs with CSS rules?

Posted: Fri Mar 24, 2023 12:27 pm
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;
}

Re: Target oxy_comment PIs with CSS rules?

Posted: Fri Mar 24, 2023 12:53 pm
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