Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text syntax highlight Jinja2 [closed]

Is there syntax highlight for Jinja2 templates in Sublime Text? By Jinja2 I mean:

{% extends "template.html" %}
{% block content %}
{% if task == 'archimed_spiral' %}
    {% include 'archimed.html %}
{% elif task == 'gcd' %}
    {% endif %}
{% endblock %}

I believe it is based on Python. And it can be pretty hard to read.

like image 615
quapka Avatar asked Apr 04 '14 18:04

quapka


1 Answers

Yes, there is a Jinja2 package for Sublime Text.

It is implemented as a TextMate syntax bundle; these are directly supported by Sublime Text, and was written by the author of the Jinja2 package himself.

like image 52
Martijn Pieters Avatar answered Nov 20 '22 20:11

Martijn Pieters