jQueryを使ってgoogle-code-prettifyを自動的に適用してみた

1
2
3
4
5
6
7
8
<script type="text/javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('pre code').addClass("prettyprint");
prettyPrint();
});
</script>

Comments

comments powered by Disqus