【发布时间】:2016-10-13 01:56:53
【问题描述】:
我正在尝试使用 prettyprint 来格式化我的代码的 UI,但我没有完成任何格式化。
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.
【问题讨论】:
标签: javascript css pretty-print