Page 1 of 1

Hide/minimize certain tags

Posted: Mon Jan 21, 2013 3:13 pm
by buestad
Is it possible to set up a list of tags I want oXygen to minimize by default when openiung a document?

Now I have a bunch of <layout> tags in a document which makes the XML less readable/editable. Wold be nice if I could right click a <layout> tag and minimize all or someting similar...

Re: Hide/minimize certain tags

Posted: Mon Jan 21, 2013 4:47 pm
by adrian
Hi,

I believe you are referring to the folding feature. The folding allows you to collapse (hide) each element that spans over multiple lines into a single line.

Unfortunately the folding is not name-aware, so you can't expand/collapse elements of a specified name. You can only expand/collapse elements relative to the element at the caret/mouse position. That means you can collapse: the current element, all its children or other folds not involved in this element's path.

See more details in the user manual:
Oxygen User Manual - Folding of the XML Elements

An alternative solution would be to collapse other folds and expand only the ones that you are currently working on.

Regards,
Adrian