Snytax荧光笔不工作

时间:2017-03-05 06:30:58

标签: syntaxhighlighter

我正在尝试在html页面中显示java代码,它无效,它显示此错误enter image description here 任何帮助将不胜感激。我的代码看起来像

<script type="text/javascript" src="syntaxhighlighter/scripts/shCore.js"></script>
<link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shCore.css" />
<script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shCoreEclipse.css" />
        
<h3>Java Code:</h3>    
<pre class="brush: java;">
public class JavaClass  {
    public static void main(String[] args)  {
        System.out.println("Hello World!");
    }
}
</pre>
 
     
   
<!-- Highlight all -->
<script type="text/javascript">
    SyntaxHighlighter.all();
</script>  

当我评论以下一行

<script type="text/javascript" src="syntaxhighlighter/scripts/shCore.js"></script>

上述错误不会出现,但会显示不同的错误。

0 个答案:

没有答案