Format XML on save in grid view

Questions about XML that are not covered by the other forums should go here.
mochabubblet
Posts: 3
Joined: Fri Feb 16, 2018 3:10 am

Format XML on save in grid view

Post by mochabubblet »

I am having trouble with formatting while using grid mode. I have set the Editor>Format>XML settings the way I like it.

However, whenever I make changes and save while viewing in grid mode it completely ignores these settings and formats it incorrectly.

Is there a way to automatically apply these formatting settings while saving? It is a huge pain to format and indent tool EVERY time I want to make a change.

Image

Example: Expand empty elements is ignored when saving in grid mode and will actually UNDO expanded empty elements.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Format XML on save in grid view

Post by Radu »

Hi,

There is a preferences page specific for the Grid editing mode: Editor / Edit Modes / Grid which has a checkbox to fully format and indent the document on save or on page switch.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mochabubblet
Posts: 3
Joined: Fri Feb 16, 2018 3:10 am

Re: Format XML on save in grid view

Post by mochabubblet »

Welp, thank you so much. This makes me very happy!
Post Reply