我在syntaxhighlighter代码中找不到拼写错误。你能发现它吗?

时间:2009-07-21 22:47:27

标签: powershell syntax-highlighting

在我的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>

1 个答案:

答案 0 :(得分:2)

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

看起来您需要将<script src=...>行放在顶部。