This extension provides syntax highlighting to YAML, JSON and NEON files for MTRGen (matronator/generator) templates.
Introduces syntax highlighting into vscode for the following languages:
MTRGen HTML templates: system name mtrgen-html
.
Default file associations: .html.mtr
.
MTRGen HTML templates: system name mtrgen-xml
.
Default file associations: .xml.mtr
.
MTRGen HTML templates: system name mtrgen-css
.
Default file associations: .css.mtr
.
MTRGen JSON templates: system name mtrgen-json
.
Default file associations: .json.mtr
.
MTRGen markdown templates: system name mtrgen-md
.
Default file associations: .md.mtr
.
MTRGen YAML (sls) templates: system name mtrgen-yaml
.
Default file associations: .yaml.mtr
, .yml.mtr
, and .sls.mtr
.
MTRGen TOML templates: system name mtrgen-toml
.
Default file associations: .toml.mtr
.
MTRGen latex templates: system name mtrgen-latex
.
Default file associations: .latex.mtr
and .tex.mtr
.
MTRGen Lua templates: system name mtrgen-lua
.
Default file associations: .lua.mtr
.
aka config / cfg / ini file: system name mtrgen-properties
.
Default file associations: .properties.mtr
, .cfg.mtr
, .conf.mtr
, .desktop.mtr
, .directory.mtr
and .ini.mtr
.
MTRGen shell/bash/zsh templates: system name mtrgen-shell
.
Default file associations (same as for the shell
language with .mtr
appended):
.sh.mtr
, .bash.mtr
, .bashrc.mtr
, .bash_aliases.mtr
, .bash_profile.mtr
,
.bash_login.mtr
, .ebuild.mtr
, .install.mtr
, .profile.mtr
, .bash_logout.mtr
, .zsh.mtr
, .zshrc.mtr
,
.zprofile.mtr
, .zlogin.mtr
, .zlogout.mtr
, .zshenv.mtr
, .zsh-theme.mtr
and .ksh.mtr
.
Dockerfile templates: system name mtrgen-dockerfile
.
Default file associations: .dockerfile.mtr
.
Unfortunately associating mtrgen-dockerfile
with file names like Dockerfile.mtr
doesn't seem to work.
MTRGen SQL templates: system name mtrgen-sql
.
Default file associations: .sql.mtr
.
MTRGen python templates: system name mtrgen-py
.
Default file associations: .py.mtr
and .pyi.mtr
.
MTRGen cython templates: system name mtrgen-cy
.
Default file associations: .pyx.mtr
, .pxd.mtr
and .pxi.mtr
.
MTRGen Terraform templates: system name mtrgen-terraform
.
Default file associations: .tf.mtr
, .tfvars.mtr
and .hcl.mtr
.
MTRGen Nginx Conf templates: system name mtrgen-nginx
.
Default file associations: .conf.mtr
.
MTRGen Groovy templates: system name mtrgen-groovy
.
Default file associations: .groovy.mtr
.
MTRGen Systemd Unit File templates: system name mtrgen-systemd
.
Default file associations: .link.mtr
, .netdev.mtr
, .network.mtr
, .service.mtr
, .socket.mtr
, .device.mtr
, .mount.mtr
, .automount.mtr
, .swap.mtr
, .target.mtr
, .path.mtr
, .timer.mtr
, .snapshot.mtr
, .slice.mtr
and .scope.mtr
.
MTRGen C++ templates: system name mtrgen-cpp
.
Default file associations: .c.mtr
, .cpp.mtr
and .h.mtr
.
MTRGen Java templates: system name mtrgen-java
.
Default file associations: .java.mtr
.
MTRGen JavaScript templates: system name mtrgen-js
.
Default file associations: .js.mtr
.
MTRGen TypeScript templates: system name mtrgen-ts
.
Default file associations: .ts.mtr
.
MTRGen PHP templates: system name mtrgen-php
.
Default file associations: .php.mtr
.
Cisco IOS configuration templates: system name mtrgen-cisco
.
Default file associations: .ios.mtr
, .cisco.mtr
MTRGen Rust templates: system name mtrgen-rust
.
Default file associations: .rs.mtr
MTRGen Go templates: system name mtrgen-go
.
Default file associations: .go.mtr
MTRGen Clarity templates: system name mtrgen-clarity
.
Default file associations: .clar.mtr
You can add more file associations, for example to associate .html
files with mtrgen-html
;
in your user or workspace settings add:
"files.associations": {
"*.html": "mtrgen-html"
},
None
Initial release
MIT License
Copyright (c) 2022 Matronator
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.