【发布时间】:2020-07-27 05:13:29
【问题描述】:
我在一些教程中看到,有些教程设法为在 Visual Studio Code 的 html 文件中注入的 jinja 模板使用智能感知和语法突出显示,但我找不到实现它的方法。 我安装了 Jinja 和 Better Jinja 扩展,但我无法让它们工作。 为了清楚起见,我想在 HTML 文件中为代码(例如下面的代码)提供智能感知和语法突出显示。
<p>
{% if music_style %}
The style you entered is {{ music_style }}
Update it in the form below
{% else %}
Please enter your style:
{% endif %}
</p>
【问题讨论】:
标签: html visual-studio-code jinja2