Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syntax Highlighting for .tt files?

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.

like image 804
Michael Stum Avatar asked Apr 04 '11 22:04

Michael Stum


People also ask

What is TT file extension?

TT stands for - Visual Studio Text Template is a software development tool created by the Microsoft. Further explanation - TT file contains text block and control logic used for generating new files. To write the Text Template file we can use either - Visual C# or Visual Basic Code.


2 Answers

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.

like image 94
Mark H Avatar answered Sep 19 '22 13:09

Mark H


As well as the Tangible editor mentioned above there's also the Clarius one, Visual T4. You can find both on the Visual Studio Gallery and see which one you prefer.

like image 31
GarethJ Avatar answered Sep 17 '22 13:09

GarethJ