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
  • 26,733
  • 16
  • 74
  • 87
Horst Walter
  • 13,293
  • 30
  • 115
  • 212

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