This feature is now available in version 4.8:
Use the setting TEMPLATING_WIDGET_HIGHLIGHT_THEME
to change the theme.
The solution uses a split field mode because we were not able to find any libraries that did highlight and editing as a single field. If one is found in the future that does it will be used.
Also syntax highlight support for Django is limited but useful enough to know things like tags, for loops, etc are correctly entered.
We added a few other things to make working with templates easier like a monospaced font and autocomplete for filter and properties, restricted resizing to vertical only, disabled scrolling inheritance to the parent element to avoid scrolling the page when scrolling the template view.
Errors are also now returned in the template result field directly: