【问题标题】:I can't find the typo in my syntaxhighlighter code. Can you spot it?我在我的语法高亮代码中找不到错字。你能发现吗?
【发布时间】:2010-11-12 19:49:18
【问题描述】:

在我的 Blogger 博客上,我确实有以下代码,但它不起作用。谁能告诉我怎么了?

<link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeRDark.css' rel='stylesheet' type='text/css'/>
<script type='text/javascript'>
    SyntaxHighlighter.config.bloggerMode = true; 
    SyntaxHighlighter.config.clipboardSwf = &#39;http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf&#39;;
    SyntaxHighlighter.all();
</script> 
<script language='javascript' src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js'/>
<script language='javascript' src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPowerShell.js'/>

这是我如何称呼 PRE 标签:

<pre class="brush: powershell">
   @echo off
   dir C:\temp
</pre>

【问题讨论】:

    标签: powershell syntax-highlighting


    【解决方案1】:

    在包含定义它的脚本之前,您不是指SyntaxHighlighter 吗?

    看来您需要将&lt;script src=...&gt; 行放在顶部。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-11
      • 2023-01-31
      • 1970-01-01
      • 2019-06-13
      • 2020-10-31
      • 2011-02-09
      相关资源
      最近更新 更多