【问题标题】:How to add JavaScript highlighting inside of Underscore.js templates in Atom如何在 Atom 的 Underscore.js 模板中添加 JavaScript 突出显示
【发布时间】:2016-08-18 21:15:26
【问题描述】:

我想知道是否有办法在 Atom 编辑器的 Underscore.js 模板中为 JavaScript 代码添加语法高亮显示?我已经为此搜索了一些插件,但没有结果。

我在 HTML 中有许多带有 Underscore.js 模板的 HTML 文件,代码如下所示:

<div>
  <% lists.forEach(list => {  %>
    <span id="list-<%= list.id %>"><%= list.name %></span>
  <% }); %>
</div>

所以也许我错过了一些插件?提前致谢。

【问题讨论】:

    标签: syntax-highlighting atom-editor


    【解决方案1】:

    尝试将语法更改为 Html (Ruby - ERB)。 Edit -&gt; Select Grammar

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-06-27
      • 1970-01-01
      • 2017-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多