Google Prettify 让代码片断变得更漂亮

google-prettify-finish.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Google Prettify</title>
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="../prettify/prettify.css" rel="stylesheet" type="text/css">



<!--[if lt IE 9]>
      <script src="../bootstrap/js/html5.js"></script>
<![endif]-->
</head>


<body onload="prettyPrint()">

<div class="container">
  <h1 class="page-header">Google Prettify<small> 让代码片断变得更漂亮</small></h1>
 <pre class="prettyprint linenums">&lt;div class=&quot;container&quot;&gt;<br>  &lt;div class=&quot;row&quot;&gt;<br>    &lt;div class=&quot;span8&quot;&gt; ... &lt;/div&gt;<br>    &lt;div class=&quot;span4&quot;&gt; ... &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/div&gt;</pre>
</div>



  
<script src="../bootstrap/js/jquery-1.7.2.min.js"></script> 
<script src="../bootstrap/js/bootstrap.js"></script>
<script src="../prettify/prettify.js"></script>








</body>
</html>

猜你喜欢

转载自beckham-xiao.iteye.com/blog/2396341