Turn off pretty print in Author mode
Oxygen general issues.
Turn off pretty print in Author mode
We have many writers using Oxygen version 22. Authoring of DITA and Docbook files, source files stored in git.
Is there a way to turn off automatic background pretty-printing of XML files that are being authored in Author mode? Sometimes the XML gets reformatted by the pretty-print operation and this makes it hard to see what was actually changed in the file, for example with a git diff.
Many Oxygen users must run into this. How do people handle this?
Thanks,
Mark
Is there a way to turn off automatic background pretty-printing of XML files that are being authored in Author mode? Sometimes the XML gets reformatted by the pretty-print operation and this makes it hard to see what was actually changed in the file, for example with a git diff.
Many Oxygen users must run into this. How do people handle this?
Thanks,
Mark
Re: Turn off pretty print in Author mode
Hi Mark,
By default, with the default settings we provide, only the modified XML elements get re-serialized when saving the XML content. For example if I open an XML document and make a change inside a <p> element, only that element gets pretty printed on save. This is the best we can do.
In the Oxygen Preferences->"Editor / Edit Modes / Author" page there is a "Serialization options" section which has additional settings. Maybe you can find a behavior you like in the "Compatibility with other tools" combo box.
An alternative would be to have a CSS which declares all elements as space preserve:
{code}*{white-space:pre;}{code}
but this would mean that Oxygen would let you insert new lines everywhere, it would not work out well in the end.
Regards,
Radu
By default, with the default settings we provide, only the modified XML elements get re-serialized when saving the XML content. For example if I open an XML document and make a change inside a <p> element, only that element gets pretty printed on save. This is the best we can do.
In the Oxygen Preferences->"Editor / Edit Modes / Author" page there is a "Serialization options" section which has additional settings. Maybe you can find a behavior you like in the "Compatibility with other tools" combo box.
An alternative would be to have a CSS which declares all elements as space preserve:
{code}*{white-space:pre;}{code}
but this would mean that Oxygen would let you insert new lines everywhere, it would not work out well in the end.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Turn off pretty print in Author mode
About using Git diff, Oxygen's Git client add-on has visual files comparison and you can also integrate Oxygen's visual files comparison with an external Git tool:
https://www.oxygenxml.com/doc/versions/ ... git-2.html
Regards,
Radu
https://www.oxygenxml.com/doc/versions/ ... git-2.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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