Doesn't a normal return already give you that?
Actually not; <tag> text|</tag>
hitting enter there will produce
<tag> text </tag>
rather than
<tag> text </tag>
hope you can spot the ASCII spaces :)
What you can do is record a macro that does:
- return
- ctrl-shift left (select to begin of line)
- tab (overwrite selection with tabs corresponding to calculated
indent)
This works as advertised and the behaviour is now as far as I can see perfect! This also puts a closure to our other BIG thread on tabbing and some such, since all this also works in XML-files. This mademy weekend, or something. Thanks again!
Andreas