【问题标题】:reveal.js and hilightjs - how to stop my tags from being automatically closedreveal.js 和 hilightjs - 如何阻止我的标签自动关闭
【发布时间】:2018-06-27 13:24:58
【问题描述】:

我正在使用reveal.js 进行演示

我想在语法高亮的代码块中显示以下内容:

<foo>

所以在我的演示文稿 html 中我这样做:

<pre><code class="hljs" data-trim contenteditable>
<foo>
</code></pre>

这是显示的内容:

<foo>
</foo>

如何阻止我的标签为我关闭?

【问题讨论】:

    标签: javascript html reveal.js highlight.js


    【解决方案1】:

    这行得通:

    <pre><code class="hljs" data-trim contenteditable>
    &ltfoo>
    </code></pre>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-16
      • 1970-01-01
      • 2011-10-31
      • 1970-01-01
      • 2022-11-22
      • 2015-03-05
      • 2012-04-06
      • 1970-01-01
      相关资源
      最近更新 更多