Cursor positioning in text tab
Posted: Mon Nov 26, 2007 9:18 am
If I append an element from the outline that has content, it positions the cursor indented on the next line, e.g.:
<doc>
<!-- cursor -->
</doc>
Then if I append an element from the outline, it inserts 2 more linebreaks:
<doc>
<sec>
<!-- cursor -->
</sec>
</doc>
Is there a way to change the behavior, so the sequence would be:
<doc><!-- cursor --></doc>
<doc>
<sec><!-- cursor --></sec>
</doc>
Also, if I insert a '/' to convert start and end tags to one empty element tag, it leaves 3 line breaks after the tag, e.g. :
<sec>
<mark>
</mark>
</sec>
becomes:
<sec>
<mark/>
</sec>
So, I end up spending a lot of time removing extra line breaks.
Can the cursor positioning scheme be changed, so the sequence would be:
<sec><!-- cursor --></sec>
<sec>
<mark><!-- cursor --></mark>
</sec>
And if I used content completion instead of the outline, the sequence would be:
<sec><!-- cursor --></sec>
press enter:
<sec>
<!-- cursor -->
</sec>
<sec>
<mark/>
</sec>
<doc>
<!-- cursor -->
</doc>
Then if I append an element from the outline, it inserts 2 more linebreaks:
<doc>
<sec>
<!-- cursor -->
</sec>
</doc>
Is there a way to change the behavior, so the sequence would be:
<doc><!-- cursor --></doc>
<doc>
<sec><!-- cursor --></sec>
</doc>
Also, if I insert a '/' to convert start and end tags to one empty element tag, it leaves 3 line breaks after the tag, e.g. :
<sec>
<mark>
</mark>
</sec>
becomes:
<sec>
<mark/>
</sec>
So, I end up spending a lot of time removing extra line breaks.
Can the cursor positioning scheme be changed, so the sequence would be:
<sec><!-- cursor --></sec>
<sec>
<mark><!-- cursor --></mark>
</sec>
And if I used content completion instead of the outline, the sequence would be:
<sec><!-- cursor --></sec>
press enter:
<sec>
<!-- cursor -->
</sec>
<sec>
<mark/>
</sec>