浏览代码

Add highlightjs to examples.

zhixin 11 年之前
父节点
当前提交
8cee6fada1
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 2 2
      docs/docs.css
  2. 3 0
      docs/examples.html

+ 2 - 2
docs/docs.css

@@ -937,8 +937,8 @@ h1[id] {
     white-space: nowrap;
 }
 .highlight pre code {
-    font-size: inherit;
-    color: #333; /* Effectively the base text color */
+    /*font-size: inherit;*/
+    /*color: #333; *//* Effectively the base text color */
 }
 .highlight pre .lineno {
     display: inline-block;

+ 3 - 0
docs/examples.html

@@ -586,5 +586,8 @@
         </ul>
     </div>
 </footer>
+<link rel="stylesheet" href="http://yandex.st/highlightjs/8.0/styles/default.min.css">
+<script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script>
+<script>hljs.initHighlightingOnLoad();</script>
 </body>
 </html>