Web author: hide processing instructions
Web author: hide processing instructions
Hi,
is it possible to hide processing instructions on oxygen web author 18.0.0?
We have tried to do this via CSS and options.xml, however both attempts failed to remove processing instructions from display.
- CSS solution:
@namespace oxy "http://www.oxygenxml.com/extensions/author";
oxy|processing-instruction[*]
{
display:none !important;
}
- Options.xml solution:
<entry>
<String>author.show.processing.instructions</String>
<Boolean>false</Boolean>
</entry>
Is there a way to do this or it's not supported?
Thanks
is it possible to hide processing instructions on oxygen web author 18.0.0?
We have tried to do this via CSS and options.xml, however both attempts failed to remove processing instructions from display.
- CSS solution:
@namespace oxy "http://www.oxygenxml.com/extensions/author";
oxy|processing-instruction[*]
{
display:none !important;
}
- Options.xml solution:
<entry>
<String>author.show.processing.instructions</String>
<Boolean>false</Boolean>
</entry>
Is there a way to do this or it's not supported?
Thanks
-
- Posts: 47
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Web author: hide processing instructions
Hello,
The option author.show.processing.instructions does not work in 18.0.x. It will be available in version 18.1.x
Best,
Gabriel
The option author.show.processing.instructions does not work in 18.0.x. It will be available in version 18.1.x
You need to remove the "[*]" at the end of the selector and PIs will be hidden.oxy|processing-instruction[*]
{
display:none !important;
}
Best,
Gabriel
Re: Web author: hide processing instructions
Thanks Gabriel for you answer,
However removing the selector [*] has not worked either.
This is an example of the processing instructions we want to hide;
<?diffStats guid=nulllangcountry=enUSAversion=000000creationdate=totalelements=2totalwords=9newelements=0changedelements=0deletedelements=0changedwords=0newwords=0username=gordon.harradine@cognitran.comwid=null?>
<?segment-crc 33f079c3?>
Could you please advise?
Thanks
However removing the selector [*] has not worked either.
This is an example of the processing instructions we want to hide;
<?diffStats guid=nulllangcountry=enUSAversion=000000creationdate=totalelements=2totalwords=9newelements=0changedelements=0deletedelements=0changedwords=0newwords=0username=gordon.harradine@cognitran.comwid=null?>
<?segment-crc 33f079c3?>
Could you please advise?
Thanks
-
- Posts: 320
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Web author: hide processing instructions
Hello,
Can you try something like:
or
to make sure that your CSS is properly picked up by Web Author?
Best,
Cristian
Can you try something like:
Code: Select all
oxy|processing-instruction {
background-color: red;
}
Code: Select all
/* assuming DITA here */
title {
background-color: red;
}
Best,
Cristian
Re: Web author: hide processing instructions
Hi,
background-color: red; works on all elements except for oxy|processing-instruction.
We have @namespace oxy "http://oxygenxml.com/extensions/author"; on the beginning of the CSS, do we need anything else to make the oxy/* elements work?
Thanks,
Oscar
background-color: red; works on all elements except for oxy|processing-instruction.
We have @namespace oxy "http://oxygenxml.com/extensions/author"; on the beginning of the CSS, do we need anything else to make the oxy/* elements work?
Thanks,
Oscar
-
- Posts: 320
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Web author: hide processing instructions
Hello,
Try removing the @namespace ... line.
Best,
Cristian
Try removing the @namespace ... line.
Best,
Cristian
Re: Web author: hide processing instructions
Thanks but it wasn't that,
It turns out that having comments '#comment' in the CSS breaks somehow the oxy|* references.
It turns out that having comments '#comment' in the CSS breaks somehow the oxy|* references.
-
- Posts: 320
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Web author: hide processing instructions
Hello,
Comments in CSS are delimited by /* ... */. You can use the desktop version of oXygen to validate your CSS-es.
Best,
Cristian
Comments in CSS are delimited by /* ... */. You can use the desktop version of oXygen to validate your CSS-es.
Best,
Cristian