Question: hide elements in XML view

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
derBunte
Posts: 11
Joined: Fri Sep 14, 2007 11:27 am
Location: Germany

Question: hide elements in XML view

Post by derBunte » Tue Nov 06, 2007 10:40 pm

Hi,

sometimes I wish to concentrate on writing in our XML-based language and hide the documentation elements, which all begin with <ourdoc:...>. Any way to hide these? Perhaps even a placeholder such as "..." could be diplayed instead.

Patrick

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Wed Nov 07, 2007 4:50 pm

Hello,

In the text view you can fold the <ourdoc:...> elements. In the Author view you can hide the elements with a property display:none or a property foldable:true for the <ourdoc:...> in the CSS associated with the XML file.


Regards,
Sorin

derBunte
Posts: 11
Joined: Fri Sep 14, 2007 11:27 am
Location: Germany

Post by derBunte » Thu Nov 08, 2007 3:40 pm

Hi,

the folding still leaves some bits (one line) visible and the author view is not really an option at a first glance. I am not even 100% sure about what I need. Perhaps putting everything (not just the tag) within <ourdoc:...> in a very light grey would suffice. So this might be a feature request for Oxygen 12 :)

But I'll give the author view a second attempt.

Thanks,

Patrick

george
Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Fri Nov 09, 2007 8:02 pm

Hi Patrick,

Check out the Options->Preferences -- Editor / Colors / Elements by Prefix. Add there ourdoc as prefix and set the color to light gray.

Best Regards,
George
George Cristian Bina

Post Reply