Syntax Highlighting for .tt files?

Michael Stum picture Michael Stum · Apr 5, 2011 · Viewed 18.7k times · Source

Is there any way to tell Visual Studio 2010 to enable syntax highlighting for .tt files? I do have a directive to set the extension:

<#@ output extension=".ascx" #>

So I'd like Visual Studio to treat the file as an ascx file for the purpose of Syntax Highlighting.

Answer

Mark H picture Mark H · Apr 5, 2011

Try the Tangible T4 Editor extension. There's a free version you can grab to try it out, but if you use them often, it's worth getting the pro license.