Consider including functionality for django-html interpreter
GBrachetta opened this issue · comments
Working with Jinja templates (Django, Flask) and having files in the templates folder directly interpreted as django-html, I could set up VS Code to allow intellisense and emmet to work, also assign that interpreter to have a formatter and give syntax higlighting for both HTML and Jinja when using the django-html interpreter.
My settings to make this possible are as follow:
"emmet.includeLanguages": {
"jinja-html": "html",
"django-html": "html"
},
"files.associations": {
"**/*.html": "html",
"**/templates/**/*.html": "django-html",
"**/templates/**/*": "django-txt",
"**/requirements{/**,*}.{txt,in}": "pip-requirements"
},
"alignment.surroundSpace": {},
"[django-html]": {
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
}
},
"beautify.language": {
"html": [
"django-html"
]
}
So my django-html files look and work perfectly at the moment as
With intellisense for both HTML and Jinja, formatting, emmet, etc. That's great!
I'm just missing having CDN working with django-html as the interpreter.
My django extension is the popular one written by Baptiste Darthenay, if that serves as a reference.
This update is great and makes django-html files the same flexible and customisable as any other html interpreted files. Very useful and a time saver, thank you!