2
我覺得這最終會成爲一個愚蠢的答案愚蠢的問題,但我真的不知道什麼是錯的。Snippet Syntax Highligher Plugin的問題
我想使用JQuery的片段插件:http://www.steamdev.com/snippet/
我包括在我的腳註中的腳本:
<script src="js/jquery.snippet.js"></script>
<script src="js/specific-styles.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// $("pre.code").snippet("php",{style:"neon"}); // tried this first of all
$(".code").snippet("php",{style:"neon",clipboard:"js/ZeroClipboard.swf"});
});
,並在我的頭的CSS:
<link rel="stylesheet" href="css/jquery.snippet.css" type="text/css" />
和我的標記如下:
<pre class="code"><?php echo "© 2008 - " . date("Y") ?></pre>
但在我的網頁上,它看起來像一個正常的<pre>
樣式沒有突出顯示。
據我所知,我已經做了正確的事情來使用插件,所以我只是想知道如果有人在這裏可以幫助。
沒有關於Firebug的報道。
解決您的