A purely visual "Format and Indent" function
Posted: Thu Feb 26, 2015 6:18 pm
Resuming what a number of people have expressed at the XML Prague 2015 Oxygen Users' Meetup, in Text Editing Mode, it would be very helpful if "Format and Indent" could render an indented view of the XML document without touching the document's whitespace at all.
Few XML editors are capable of this, one famous example is XMLQuire.
As George Bina suggested, this could maybe achieved by preparing for the Text Editing Mode a special, second CSS stylesheet which basically indents each element based on its depth of nesting (so much for the theory, but I have no idea though how difficult that will get in practice).
The user would then be offered the choice between the default Text Editing Mode view and the indented view.
Implementing this could really be worth the effort. I know of a lot of colleagues of mine and other people that would greatly appreciate an enhanced version of the Format and Indent function for Oxygen's Text Editing Mode which indents the structure in a purely visual way, and does not tamper with the whitespace in the document.
Yves Forkl
Few XML editors are capable of this, one famous example is XMLQuire.
As George Bina suggested, this could maybe achieved by preparing for the Text Editing Mode a special, second CSS stylesheet which basically indents each element based on its depth of nesting (so much for the theory, but I have no idea though how difficult that will get in practice).
The user would then be offered the choice between the default Text Editing Mode view and the indented view.
Implementing this could really be worth the effort. I know of a lot of colleagues of mine and other people that would greatly appreciate an enhanced version of the Format and Indent function for Oxygen's Text Editing Mode which indents the structure in a purely visual way, and does not tamper with the whitespace in the document.
Yves Forkl