Gaston Milano's WebLog

About something...

News

General

Usability

VS Automation

VSIP

Coloring for T4 templates

Are you editing T4 templates in VS 2005?

I prefer editing with coloring ;)

As always a very friendly batch setup that you have to run in a VS2005 command prompt ;)

It works with the following extensions

LPCTSTR g_languageFileExtensions[] = { L".tt", L".dsldmt", L".dsldmi", L".dslddi", L".dslddt", NULL };

Implemented used babel package.

 See this post for more features and download details

Posted: Mar 02 2006, 10:54 PM by GMilano | with 7 comment(s)
Filed under: ,

Comments

Gustavo Guerra said:

The link doesn't work
# March 3, 2006 6:27 AM

GMilano said:

Thanks, ready
# March 3, 2006 7:00 AM

Pedro Silva said:

This looks really good, and I've linked to it from my blog, so that other DSL Tools users might find it.
# March 3, 2006 1:46 PM

Luiz Ricci said:

The Download link still doesnt work
# March 4, 2006 11:35 AM

Paolo said:

2 questions:
1) How can I associate another one extension to the colouring editor?
2) It doesn't work for me in experimental build... I'd like to use the editor with DSL Tool for working with templates in the designer... I also tried to change the template extension,but it doesn't work yet...
Can someone help me?
Tnx for your all patience! :)
Paolo Arrigoni
# March 21, 2006 4:43 AM

GMilano said:

1)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Languages\File Extensions\.YOUREXTENSION]
@="{CC3FEB45-BAE1-46B0-A5C1-A051DB7CE6A4}"
"Name"="T4 Engine"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Languages\Language Services\T4 Engine]
@="{CC3FEB45-BAE1-46B0-A5C1-A051DB7CE6A4}"
"Extensions"=".YOUREXTENSION;.t4;.tt;.dsldmt;.dsldmi;.dslddi;.dslddt;"

Replace YOUREXTENSION

2) I recommend you to read
ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.VSSDK.v80/dv_vsintegration/html/ead0df4e-6f88-4b42-9297-581b7902f050.htm

But you can achieve what you want if you run
VsRegEx GetOrig 8.0 Exp

VsRegEx is a tool installed with vs sdk

# March 21, 2006 10:31 PM

Paolo said:

Thanks, great!
Paolo
# March 28, 2006 5:52 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)