Extension Details

- HTML Django
- by djch
- 71 Recent Installs | 645 Total Installs
- Syntax highlighting for Django templates (using Tree Sitter grammar)
- Repository
- Bug Reports
Readme
HTML Django provides syntax highlighting for the Django Template Language.

Firstly, this extension would not exist without this Tree Sitter grammar created by @interdependence!
I would also like to shout out @tommasongr's Ruby on Rails extension for Nova which is excellent and has provided a lot of inspiration.
I really have no idea what I'm doing. The only other Django extensions for Nova haven't been updated since it launched so I'm trying to come up with something that will fulfill my own needs mainly.
Release Notes
Version 1.3.2
Improves syntax auto-detection so Django-style template tags in YAML and other structured files are less likely to be erroneously detected.
Version 1.3.1
Re-signing the dylib and avoiding a validation issue with Clips.
Version 1.3.0
Incorporates the latest changes from the source grammar by @interdependence, including support for string literals in expressions and a tree-sitter 0.25.1 bump.
Version 1.2.0
Add a minor number to the version scheme in the hopes the Extension Library will pick it up...
Version 1.2
Incorporates the latest changes from the source grammar by @interdependence
Version 1.1
Literally just fixing all the README and CHANGELOG typos from my last release.
Version 1.0
I am bumping the version up to 1.0. I've been pretty happy using my extension for the past 6 months or so.
New:
-
A template-tag switching command has been added. You can use it to cycle through tag pairs e.g
{{ }},{% %}and{# #}at your selection/cursor position. The shortcut is bound tocmd-shift->, like the Rails extension that inspired it. -
Clips are now included for if tags, for tags and block tags. For example. you should be able to type for, hit the
tabkey and Nova will autocomplete it into a full set of tags with tab-indexed insertion points.
Version 0.1
Syntax highlighting based on an existing grammar maintained by interdependence/tree-sitter-htmldjango