VS Code extension for syntax highlighting and formatting [Tera][tera] templates. Based on https://github.com/danielchatfield/atom-jinja2.
Syntax highlighting for Tera Template.
Visual Studio Code. Version 1.19.1 as this extension made.
Snippet | Description |
---|---|
xx | {{ }} |
block | {% block %} {% endblock %} |
inblock | Same as above but on a single line |
if | {% if %} {% endif %} |
ifi | Same as above but on a single line |
ifelse | {% if %} {% elif %} {% endif %} |
else | {% else %} |
filter | {% filter %} {% endfilter %} |
forloop | {% for in %} {% endfor %} |
extend | {% extends "" %} |
include | {% include "" %} |
import | {% import "" %} |
macro | {% macro %} {% endmacro %} |
- Reregister the
.tera
extension - Removed the unused dependencies
- Tera template file is replaced with HTML for syntax highlighting
- Snippets work in HTML
- Added snippets support.
- Added formatting support.
- First release. May or may not be maintained.
Enjoy!