Browse Source

Prettify <pre> on homepage.

Florian Kissling 10 years ago
parent
commit
25ba1ef1f3
2 changed files with 10 additions and 3 deletions
  1. 7 0
      docs/_layouts/home.html
  2. 3 3
      docs/index.html

+ 7 - 0
docs/_layouts/home.html

@@ -19,4 +19,11 @@
 
         {% include ga.html %}
     </body>
+        <script>
+           (function () {
+              'use strict';
+
+              prettyPrint();
+            })();
+        </script>
 </html>

+ 3 - 3
docs/index.html

@@ -64,7 +64,7 @@ slug: home
         Include the following lines of code in the <code>&lt;head&gt;</code>
         section of your HTML.
 
-<pre class="code">
+<pre class="code prettyprint">
 &lt;link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/css/select2.min.css" rel="stylesheet" /&gt;
 &lt;script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/js/select2.min.js"&gt;&lt;/script&gt;
 </pre>
@@ -79,7 +79,7 @@ slug: home
         Initialize Select2 on the <code>&lt;select&gt;</code> element that you
         want to make awesome.
 
-<pre class="code">
+<pre class="code prettyprint">
 &lt;script type="text/javascript"&gt;
   $('select').select2();
 &lt;/script&gt;
@@ -111,7 +111,7 @@ slug: home
         Include the following lines of code in the <code>&lt;head&gt;</code>
         section of your HTML.
 
-<pre class="code">
+<pre class="code prettyprint">
 &lt;link href="path/to/select2.min.css" rel="stylesheet" /&gt;
 &lt;script src="path/to/select2.min.js"&gt;&lt;/script&gt;
 </pre>