Open Seminioni opened 7 years ago
The same happens to me. It isn't a problem of this extension but if someone has a solution that is welcome!
{# Nunjucks Templating!
Homepage: https://mozilla.github.io/nunjucks/
Docs: https://mozilla.github.io/nunjucks/api.html
#}
{% extends 'layouts/application.html' %}
{% block head %}
<title>Prueba</title>
{% endblock %}
{% block content %}
<h1 data-module="example">{{ autor }}</h1>
{% endblock %}
After formatting:
{# Nunjucks Templating! Homepage: https://mozilla.github.io/nunjucks/ Docs: https://mozilla.github.io/nunjucks/api.html #}
{% extends 'layouts/application.html' %} {% block head %}
<title>Prueba</title>
{% endblock %} {% block content %}
<h1 data-module="example">{{ autor }}</h1>
{% endblock %}
how to add the formatter for 'nunjucks'-files?
Honestly, if you just added html formatting to this extension, at least you could get some basic html formatting with nunjucks.
i use
https://marketplace.visualstudio.com/items?itemName=mblode.twig-language-2 and added this settings
"files.associations": {
"*.svg": "html",
"*.njk": "twig"
},
it works very well yea i did not testing everything https://www.useloom.com/share/73951077b70d4c67a789b8297ee3baf7
Hi! I am using your extension together with nunjucks templates, but I've got an issue: VS CODE does not format nunjucks templates (at all) because of I use nunjucks syntax (look at the pic).
On the other hand if I use html syntax highlighting then VS CODE does your job great, except one thing (look at the pic).
![Pic2](https://i.imgur.com/9y0bVFe.png)
Everything great except FUCKING comments formatting OMG. I just wanna them not to be formatted! Is it possible to fix it?