You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jinja2 syntax not highlighted in attributes of HTML tags like in other places of HTML document.
2. Expected behavior
Part of my page.html file:
<linkrel="stylesheet" href="{{SITEURL}}/themes/sashapelican/statica/css/general/image_{{page.iconleftorright}}.css"><linkrel="stylesheet" type="text/css" href="{{SITEURL}}/themes/sashapelican/statica/bower-components/rainbow/themes/css/rainbow.css"><!-- Открытие ссылок в новой вкладке --><basetarget="_blank"></head><body><!-- Бэкграунд aside --><asideclass="sidebar" style="background-image: url({{SITEURL}}/themes/sashapelican/statica/images/aside/{{page.sashaicon}}.jpg)"><divclass="cover"><divclass="cover-text"><!-- Заголовок aside --><h1>{{page.pagetitle}}</h1></div></div></aside><!-- Текст --><mainclass="content-wrapper"><h1class="SashaHeader">{{page.pagetitle}}</h1> {{page.content}}
</main></body>
See {{page.pagetitle}} and {{page.content}}.
3. Actual behavior
See {{SITEURL}} and {{page.sashaicon}}.
Scopes for {{SITEURL}} and {{page.sashaicon}} It is the same as in the near text.
4. Steps to reproduce
The problem is reproduced for me in a version of Sublime Text without plugins and user settings.
I install Jinja2 via Package Control → I setJinja2/Syntaxes/HTML (Jinja2) syntax for HTML files with Jinja2 templates → I open my page.html file → I get actual behavior.
5. Environment
Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN Sublime Text:
Build 3126
Thanks.
The text was updated successfully, but these errors were encountered:
Kristinita
changed the title
[Bug] Not highlighted Jinja2 syntax in CSS attributes
[Bug] Not highlighted Jinja2 syntax in HTML attributes
Jan 25, 2017
1. Summary
Jinja2 syntax not highlighted in attributes of HTML tags like in other places of HTML document.
2. Expected behavior
Part of my
page.html
file:See
{{page.pagetitle}}
and{{page.content}}
.3. Actual behavior
See
{{SITEURL}}
and{{page.sashaicon}}
.Scopes for
{{SITEURL}}
and{{page.sashaicon}}
It is the same as in the near text.4. Steps to reproduce
The problem is reproduced for me in a version of Sublime Text without plugins and user settings.
I install Jinja2 via Package Control → I set
Jinja2/Syntaxes/HTML (Jinja2)
syntax for HTML files with Jinja2 templates → I open mypage.html
file → I get actual behavior.5. Environment
Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Sublime Text:
Build 3126
Thanks.
The text was updated successfully, but these errors were encountered: