Shame on Microsoft but they don’t provide any syntax highlighting and IntelliSense for T4 in Visual Studio.
There are bunch of 3rd-party utilities for that.
For Visual Studio 2010 the best one is Visual T4.
Its free version was even better than some paid products.
Unfortunately I don’t find any good utilities for Visual Studio 2012 yet.
I will keep you informed