Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlight text part? #7

Open
AndersMad opened this issue Nov 22, 2021 · 3 comments
Open

Syntax highlight text part? #7

AndersMad opened this issue Nov 22, 2021 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@AndersMad
Copy link

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
Copy link

AraHaan commented Sep 7, 2022

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
Copy link
Owner

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.

@bricelam bricelam added this to the Backlog milestone Sep 19, 2022
@bricelam bricelam added the enhancement New feature or request label Sep 19, 2022
@AraHaan
Copy link

AraHaan commented Sep 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants