In a Win environment, Loquendo Director was pretty darned good. I'm not sure what Nuance has done with it since they bought Loquendo. I took a quick look at their website and didn't see it. Even if they have quit supporting and advertising it, that doesn't mean they won't sell you a copy, and it should still work. But I haven't used Widows in years now, so I'm guessing.
There doesn't appear to be anything like it in the 'nix world, but if you'd be satisfied with a utility to piggy back on your prefered text editor so you could highlight a string, and then pick tags (or whatever they call those <blah,blah>foo</blah>
kind of things to wrap the strings in, or simply insert code at the point of the cursor, relieving you of both the tedium of typing them and remembering the exact syntax, geany has built in utilities that could be used that way. I wouldn't be surprised if gedit does as well. But even for a very simple editor, it should be pretty easy to cobble something to do this together with bash, xclip, and 9menu. That last is a much under-appreciated program imo.