在我的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 = 'http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf';
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>
答案 0 :(得分:2)
在包含定义它的脚本之前,你不是指SyntaxHighlighter
吗?
看起来您需要将<script src=...>
行放在顶部。