VS2010 - Assign html code formatting to T4 (.tt) file

▼魔方 西西 提交于 2019-12-20 05:15:13

问题


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):

Want have:

-- Update as of answer Marcio Barcellos --

Formatting with proposed AddOn:


回答1:


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

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



来源:https://stackoverflow.com/questions/12355639/vs2010-assign-html-code-formatting-to-t4-tt-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!