0
我想使用prettyprint來格式化我的代碼的用戶界面,但我沒有得到任何格式化。簡單的漂亮打印程序不工作
HTML:
<html>
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css" rel="stylesheet">
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
</head>
<body onload="prettyPrint()">
<pre class="prettyprint">
<div> This is a div </div>
<a href="http://www.google.com">Bollywood </a >
</pre>
</body>
</html>
參考文獻:
有人可以幫我嗎?
I want the default layout in the 3rd link provided.