VS2010 - 将 html 代码格式分配给 T4 (.tt) 文件 [英] VS2010 - Assign html code formatting to T4 (.tt) file

查看:24
本文介绍了VS2010 - 将 html 代码格式分配给 T4 (.tt) 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 VS2010 中有一个 T4 文本模板 (.tt) - 主要用于生成 HTML 代码(基本上是一些包含和 JavaScript).

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

是否可以将 HTML 代码格式(颜色等)分配给该 tt 文件.

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

是情况(T4):

想要:

-- 更新回答 Marcio Barcellos --

-- Update as of answer Marcio Barcellos --

使用建议的插件格式化:

Formatting with proposed AddOn:

推荐答案

你可以添加一个扩展到visual studio,得到你想要的结果

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

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

这篇关于VS2010 - 将 html 代码格式分配给 T4 (.tt) 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆