[oXygen-user] How to prevent Format and Indent from modifying the content of specific elements?
George Bina
george at oxygenxml.com
Mon Aug 14 07:13:17 CDT 2023
Dear Roger,
Oxygen needs to treat that element as a whitespace preserve element.
One option is to add it to the "Preserve space" elements list in the
Oxygen preferences (Options->Preferences -- Editor / Format / XML):
https://www.oxygenxml.com/doc/versions/25.1/ug-editor/topics/preferences-editor-format-xml.html#preferences-editor-format-xml__dlentry_z2p_bgk_54b
Oxygen also detects that from various sources if information, for
example if you use a schema and that defines the element as whitespace
preserve element, or if the element has the xml:space attribute set as:
xml:space="preserve".
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 8/14/23 2:10 PM, Roger L Costello wrote:
> I have an XML document with elements that contain JSON code, e.g.,
>
> <schema>
> "$schema": https://json-schema.org/draft/2020-12/schema
> <https://json-schema.org/draft/2020-12/schema>,
> "type": "object",
> "properties": {
> "password": {"type": "string", "writeOnly": true}
> }
> </schema>
>
> When I click on the Format and Indent icon, I do not want that content
> to be changed. Is there a way to instruct Oxygen, “Hey, don’t change the
> content of the <schema> element.”?
>
> /Roger
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
More information about the oXygen-user
mailing list