- assigned_to: eht16 --> nobody
XML tagging is a useful feature.
It would be far better if the content of the tagging dialog persisted from one use to the next (and better still if it had a history popup allowing previously used text to be selected).
The use of the %s feature in the dialog would be hugely enhanced if the dialog had an "overwrite" checkbox which made the tag overwrite the selection instead of enclosing it. This would allow the feature to be used in these ways (assume the text "FOO" is selected):
// create an empty tag whose name is the selection: <FOO></FOO>
%s
// create an empty tag with an attribute named by the selection: <bar FOO="baz"></bar>
bar %s="baz"
// create a tag with an attribute whose value is the selection: <bar baz="FOO"></bar>
bar baz="%s"
As a further refinement you could offer "enclose", "overwrite" and "empty tag" options which could be used to produce these:
enclose: <bar>FOO</bar>
overwrite: <bar baz="FOO"></bar> [best if the cursor is left in the middle of the tag after the replacement allowing immediate text entry]
empty: <bar baz="FOO"/>