Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zbecknell/t4-support

Provides syntax highlighting for T4 Text Templates in Visual Studio Code.
https://github.com/zbecknell/t4-support

Last synced: about 2 months ago
JSON representation

Provides syntax highlighting for T4 Text Templates in Visual Studio Code.

Awesome Lists containing this project

README

        

# 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](https://docs.microsoft.com/en-us/visualstudio/modeling/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](./assets/screenshot1.png)

![Dark theme screenshot](./assets/screenshot2.png)

## 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.