Using an entity for block of XML destroys my pretty printing layout
Posted: Tue Nov 17, 2020 9:37 pm
I know you can use an entity to represent both inline text and an entire block of XML tags.
When I use an entity to represent a large block of XML, and the do the CTRL-SHIFT-P to "pretty print" the XML, the entity is treated as an "inline" thing and (even if what comes before it and after it are their own blocks) gets the white space before and after it removed. This makes it very hard to read by burying what could be a very important element in the middle of a line and messing up the formatting of what came before and after as well.
I'd love to know of a way to address this, and if there is not yet one, to encourage the devs to address this somehow.
Thanks much!!!
When I use an entity to represent a large block of XML, and the do the CTRL-SHIFT-P to "pretty print" the XML, the entity is treated as an "inline" thing and (even if what comes before it and after it are their own blocks) gets the white space before and after it removed. This makes it very hard to read by burying what could be a very important element in the middle of a line and messing up the formatting of what came before and after as well.
I'd love to know of a way to address this, and if there is not yet one, to encourage the devs to address this somehow.
Thanks much!!!