Hide XML Comments with CSS or LESS in Author Mode
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 48
- Joined: Wed Oct 22, 2014 4:11 pm
Hide XML Comments with CSS or LESS in Author Mode
Post by friedemann_bach »
Dear Forum!
Is there a way to hide XML Comments in the Author Mode using CSS or LESS (a) in general and (b) in specific elements?
Is there a way to hide XML Comments in the Author Mode using CSS or LESS (a) in general and (b) in specific elements?
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Hide XML Comments with CSS or LESS in Author Mode
Hi,
You first need to define a namespace declaration in the CSS like:
and then match the XML comment something like:
That !important flag needs to be set because the builtin styling CSS added by Oxygen by default specifies most of its selectors using the !important flag so you need to overwrite that:
https://www.oxygenxml.com/doc/versions/ ... ctors.html
Regards,
Radu
You first need to define a namespace declaration in the CSS like:
Code: Select all
@namespace oxy "http://www.oxygenxml.com/extensions/author";
Code: Select all
oxy|comment {
display:none !important;
}
https://www.oxygenxml.com/doc/versions/ ... ctors.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 48
- Joined: Wed Oct 22, 2014 4:11 pm
Re: Hide XML Comments with CSS or LESS in Author Mode
Post by friedemann_bach »
Great, Radu, thank you very much!
-
- Posts: 419
- Joined: Mon May 09, 2016 9:37 am
Re: Hide XML Comments with CSS or LESS in Author Mode
Post by sorin_carbunaru »
Hi Steve,
You can create an alternate CSS (see https://www.oxygenxml.com/doc/versions/ ... t-CSS.html), which will be displayed in the Styles menu from the toolbar.
All the best wishes,
Sorin Carbunaru
oXygen XML
You can create an alternate CSS (see https://www.oxygenxml.com/doc/versions/ ... t-CSS.html), which will be displayed in the Styles menu from the toolbar.
All the best wishes,
Sorin Carbunaru
oXygen XML
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service