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

6 Comments

  • The link doesn't work

  • This looks really good, and I've linked to it from my blog, so that other DSL Tools users might find it.

  • The Download link still doesnt work

  • 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

  • 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



  • Thanks, great!

    Paolo

Comments have been disabled for this content.