bricelam / T4Language

Adds basic language support for .tt files to Visual Studio.
Other
37 stars 3 forks source link

Syntax highlight text part? #7

Open AndersMad opened 2 years ago

AndersMad commented 2 years ago

Cool thanks! Would it be possible to highlight the "text" part as C#?

Maybe via/if <#@ output extension=".cs"#> or just always as I spose 99% is generating just that.

AraHaan commented 1 year ago

What about the C# code in the templates that is part of the template itself (not the output)? Edit, yep it does.

I was looking at https://marketplace.visualstudio.com/items?itemName=DevartSoftware.DevartT4EditorforVisualStudio however for me it does not work because I only use VS2022 on my old laptop because it cant run VS2019 or older anymore.

bricelam commented 1 year ago

IMHO, this makes the templates a lot less readable. I wouldn't want to do it without a background color (#2) to separate the template code from the output code.

AraHaan commented 1 year ago

Also note: It seems the and keyword does not get highlighted that comes from pattern matching in the c# syntax section itself.