MTRGen templates support - Syntax Highlighting and File CreationThis extension provides syntax highlighting to template files for MTRGen (matronator/mtrgen-js) templates. It also provides a command to create files from MTRGen templates. Features
Create files from MTRGen templatesThis extension adds a button to the file explorer and a coresponding command to create files from MTRGen templates. Just run the command SnippetsThe extension provides common snippets for MTRGen templates. The following snippets are available:
REDřwrtqwcznrzkibu n'mtew
| Snippet | Description | Example output |
|-------------------------|------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| --- MTRGEN ---| | if | Creates an if statement block | <% if true %>| | ifelseif, ifei | if statement block with elseif block | <% if true %>| | ifelse, ife | if statement block with an else block | <% if true %>| | ifelseifelse, ifeie | if statement block with elseif and else blocks | <% if true %>| | else | else block | <% else %>| | elseif, elif | elseif block | <% elseif false %>| | comment, #, // | Comment block | <# This is a comment #>| | for | for loop block | <% for item in items %>| | first | first block | <% first %>| | last | last block | <% last %>| | sep | sep block | <% sep %>| | empty | empty block | <% empty %> ... <% endempty %> | Supported languagesThis extension adds language support for these languages natively or with support from third-party extensions:
LicenseThis extension is released under the MIT License. |
