Giter Site home page Giter Site logo

yajo / jinjahtml-vscode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samuelcolvin/jinjahtml-vscode

0.0 1.0 0.0 327 KB

Syntax highlighting for jinja(2) html templates in vscode

Home Page: https://marketplace.visualstudio.com/items?itemName=samuelcolvin.jinjahtml

License: MIT License

jinjahtml-vscode's Introduction

Jinja Template Highlighting

Syntax highlighting for jinja(2) including HTML, Markdown, YAML and other templates.

IDE

Languages:

Introduces syntax highlighting into vscode for the following languages:

Jinja Raw

Raw jinja templates: system name jinja.

no file default associations.

Jinja HTML

Jinja HTML templates: system name jinja-html.

Default file assocations: .jinja, .jinja2, .j2 and .html.j2.

Jinja CSS

Jinja HTML templates: system name jinja-css.

Default file assocations: .css.jinja, .css.jinja2, .css.j2.

Jinja JSON

Jinja JSON templates: system name jinja-json.

Default file assocations: .json.jinja, .json.jinja2, .json.j2.

Jinja Markdown

Jinja markdown templates: system name jinja-md.

Default file assocations: .md.jinja, .md.jinja2 and .md.j2.

Jinja YAML

Jinja YAML (sls) templates: system name jinja-yaml.

Default file assocations: .yml.j2, .yaml.j2 and .sls.

Jinja TOML

Jinja TOML templates: system name jinja-toml.

Default file assocations: .toml.jinja, .toml.jinja2 and .toml.j2.

Jinja LaTeX

Jinja latex templates: system name jinja-latex.

Jinja blocks use {% %} by default which does not play nicely with LaTeX, so those are replaced by ((* *)) in LaTeX templates.

Default file assocations: .latex.j2, .tex.j2, .latex.jinja2 and .tex.jinja2.

Jinja Lua

Jinja Lua templates: system name jinja-lua.

Default file assocations: .lua.jinja, .lua.jinja2 and .lua.j2.

Jinja Properties

aka config / cfg / ini file: system name jinja-properties.

Default file assocations: .properties.j2, .cfg.j2, .conf.j2, .desktop.j2, .directory.j2 and .ini.j2.

Jinja Shell Scripts

Jinja shell/bash/zsh templates: system name jinja-shell.

Default file assocations (same as for the shell language with .j2 appended): .sh.j2, .bash.j2, .bashrc.j2, .bash_aliases.j2, .bash_profile.j2, .bash_login.j2, .ebuild.j2, .install.j2, .profile.j2, .bash_logout.j2, .zsh.j2, .zshrc.j2, .zprofile.j2, .zlogin.j2, .zlogout.j2, .zshenv.j2, .zsh-theme.j2 and .ksh.j2.

Dockerfiles

Dockerfile templates: system name jinja-dockerfile.

Default file assocations: .dockerfile.j2, .dockerfile.jinja and .dockerfile.jinja2.

Unfortunately associating jinja-dockerfile with file names like Dockerfile.j2 doesn't seem to work.

Jinja SQL

Jinja SQL templates: system name jinja-sql.

Default file assocations: .sql.j2, .sql.jinja and .sql.jinja2.

Jinja Python

Jinja python templates: system name jinja-py.

Default file assocations: .py.j2, .py.jinja and .py.jinja2.

Jinja Terraform

Jinja Terraform templates: system name jinja-terraform.

Default file assocations: .tf.j2, .tf.jinja, .tf.jinja2, .tfvars.j2, .tfvars.jinja, and .tfvars.jinja2.

Jinja Groovy

Jinja Groovy templates: system name jinja-groovy.

Default file assocations: .groovy.j2, .groovy.jinja and .groovy.jinja2.

Jinja Systemd Unit Files

Jinja Systemd Unit File templates: system name jinja-systemd.

Default file assocations: .link.j2, .link.jinja, .link.jinja2, .netdev.j2, .netdev.jinja, .netdev.jinja2, .network.j2, .network.jinja, .network.jinja2, .service.j2, .service.jinja, .service.jinja2, .socket.j2, .socket.jinja, .socket.jinja2, .device.j2, .device.jinja, .device.jinja2, .mount.j2, .mount.jinja, .mount.jinja2, .automount.j2, .automount.jinja, .automount.jinja2, .swap.j2, .swap.jinja, .swap.jinja2, .target.j2, .target.jinja, .target.jinja2, .path.j2, .path.jinja, .path.jinja2, .timer.j2, .timer.jinja, .timer.jinja2, .snapshot.j2, .snapshot.jinja, .snapshot.jinja2, .slice.j2, .slice.jinja, .slice.jinja2, .scope.j2, .scope.jinja and .scope.jinja2.

Extra File Associations

You can add more file associations, for example to associate .html files with jinja-html; in your user or workspace settings add:

"files.associations": {
  "*.html": "jinja-html"
},

Snippet Support

jinjahtml-vscode's People

Contributors

bozydarek avatar chrisjsewell avatar gsemet avatar hipska avatar joshreep avatar lukesneeringer avatar n-a-sz avatar nilesh3105 avatar samuelcolvin avatar sapphire-janrain avatar sunaoka avatar

Watchers

 avatar

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.