2

I am having a T4 text template (.tt) in VS2010 - mainly used to generate HTML code (basically some includes and JavaScript).

Is it possible to assign the HTML code formatting (colors, etc) to that tt file.

Is situation (the T4):

How the tt file is formatted

Want have:

Can i get this formatting on a .tt file

-- Update as of answer Marcio Barcellos --

Formatting with proposed AddOn:

Formatting with AddOn

apaderno
  • 28,547
  • 16
  • 75
  • 90
Horst Walter
  • 13,663
  • 32
  • 126
  • 228

1 Answers1

2

You can add an extension to visual studio and get the result you want

http://visualstudiogallery.msdn.microsoft.com/40a887aa-f3be-40ec-a85d-37044b239591

  • This is an excellent extension. However, the formatting only works on code within template tags <#! !#> , not the html code on the outer level. See screenshot above. – Horst Walter Sep 10 '12 at 21:08