"Soft" indenting on a per-element basis
Posted: Mon Sep 06, 2004 11:06 pm
It would be useful to have an option to indent certain elements in the editor view without inserting an actual linebreak + indentation in the underlying XML. This need arises most often with mixed-content XML, for example using TEI markup. Consider the typical case of marking text that reads "I saw m**y men there", where one editor gives "many" and another editor gives "merry". In TEI you could code this:
This would be much easier to read and edit in this format:
However, adding actual whitespace to the XML would create a false break between the letters of the word many/merry.
If there was a toggle option to add a "soft" indent before <app> and <rdg>, it would make editing easier while preserving correct content.
I know that some XML editors that use style sheets (like epcEdit) make this possible.
Code: Select all
I saw m<app><rdg wit="E1">an</rdg><rdg wit="E2">err</rdg></app>y men there
Code: Select all
I saw m
<app>
<rdg wit="E1">an</rdg>
<rdg wit="E2">err</rdg>
</app>
y men there
If there was a toggle option to add a "soft" indent before <app> and <rdg>, it would make editing easier while preserving correct content.
I know that some XML editors that use style sheets (like epcEdit) make this possible.