C# and XML support the Edit.SurroundWith command that will insert the desired snippet around the selected code
This blog post has moved to http://saraford.net/2007/12/17/did-you-know-how-to-insert-a-code-snippet-around-a-block-of-code-108/