說明白
- Download a distribution
- Include the script and stylesheets in your document (you will need to make sure the css and js file are on your server, and adjust the paths in the script and link tag)
<link href="prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="prettify.js"></script>
- Add
onload="prettyPrint()"
to your document's body tag. - Modify the stylesheet to get the coloring you prefer
不想下載的 可以直接連結線上的
<pre class="prettyprint"><code class="language-java">
程式碼
</code></pre>
the End~
沒有留言:
張貼留言