Ignorowanie kodu
Kod można zignorować, otaczając go tagami djlint:
W zwykłym HTML-u:
<!-- djlint:off -->
<bad html to ignore>
<!-- djlint:on -->
lub w komentarzu:
{# djlint:off #}
<bad html to ignore>
{# djlint:on #}
lub w długim komentarzu:
{% comment %} djlint:off {% endcomment %}
<bad html to ignore>
{% comment %} djlint:on {% endcomment %}
lub w komentarzu w stylu golang:
{{ /* djlint:off */ }}
<bad html to ignore>
{{ /* djlint:on */ }}
lub w komentarzu w stylu handlebars:
{{!-- djlint:off --}}
<bad html to ignore>
{{!-- djlint:on --}}
Ignorowanie reguł
Można też ignorować konkretne reguły lintera, dopisując nazwę reguły do tagu otwierającego ignorowany blok.
{# djlint:off H025,H026 #}
<p>
{# djlint:on #}
<!-- djlint:off H025-->
<p>
<!-- djlint:on -->
{% comment %} djlint:off H025 {% endcomment %}
<p>
{% comment %} djlint:on {% endcomment %}
{{!-- djlint:off H025 --}}
<p>
{{!-- djlint:on --}}
{{ /* djlint:off H025 */ }}
<p>
{{ /* djlint:on */ }}