Custom Text Templating Host : Working version based on http://msdn.microsoft.com/en-us/library/bb126579.aspx