And in another TM I add </xf:if>. This is useful so you don't have to select a bunch of code. Now in XF 2.1 I can't create such TM, because it says syntax error.
I know it doesn't answer your question, but you can use regular expressions to more easily select a bunch of code. You really should never select more than a single line of code in a normal TM, since themes or other addons may have already modified that particular line. Especially themes, they may not use tabs (instead using spaces) and as such the TM will fail.
With a properly targeted regular expression, those issues are avoided