Coder Social home page Coder Social logo

t4-support's Introduction

T4 Support

Very basic language support for T4 Text Templates (.tt, .ttinclude) files.

For more information about using T4 templates, see Code Generation and T4 Text Templates.

Features

Provides C# syntax highlighting for embedded code within T4 templates as well as snippets for common directives and functions.

Light theme screenshot

Dark theme screenshot

Known Issues

Currently only C# embedded highlighting is supported.

Release Notes

0.5.0

Recognize .ttinclude files.

0.4.4

Fix inverted highlighting on back-to-back blocks.

0.4.3

Fixed compatibility for files without .tt extension. Thank you @awglyde!

0.4.0

Add background highlighting of open/closing brackets (<#, #>) and code blocks for better visual separation.

0.3.2

Further fixes for syntax highlighting.

0.3.1

Minor fix in syntax highlighting.

0.3.0

Added snippets!

0.2.2

Spruced up inline code regex, which fixed an issue where code failed to exit a block.

0.2.1

Fix issue where curly braces inside code blocks prevented escaping from block.

0.2.0

Rudimentary highlighting for opening/closing brackets.

0.1.3

Add extension icon.

0.1.2

Fixed sloppy highlighting.

0.1.1

Support for VS Code versions 1.0.0 and above.

0.1.0

Initial release.

t4-support's People

Contributors

alexrp avatar awglyde avatar bricelam avatar sea1jxr avatar zbecknell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sea1jxr

t4-support's Issues

CI/CD

Need to set up CI/CD so it's easier to publish. I have the PAT set up as the secret VSCE_PAT and will probably use this to do the work.

Braket Highlightning

If the cursor is on a braket in C# Code, the closing braket is not highlighted

Add .biml extension

Hi - I work with BIML files (https://www.varigence.com/Biml), which are basically a flavor of T4 file, and I find that if I change the .biml extension on those files to .tt extensions, your syntax highlighter seems to work.

There is no specific .biml file syntax highlighting extension out there for VS Code, so I wonder if you could add the .biml extension as a supported extension for your t4-support project. You might find that you get some more downloads from people who work with BIML and would like to use VS Code.

Configurable Extensions

We have our own extension for T4 Templates.
Would it be possible to add a setting to make them configurable?

Background color switches when 2 blocks follow each other

Hi, and thanks for this extension!

I discovered that if 2 blocks follow each other the background color (used to highlight C# code) is inverted on the rest of the file.

demo

With a space between the 2 blocks everything goes back to normal.

Problem seems to come from:

const regEx = /(<#@|<#\+|<#=|<#|#>)+/g;

When I hover between the 2 blocks I have T4 Bracket #><#=.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.