Debian Codegraph @

examples.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4
5 <meta charset="utf-8" />
6 <link rel="icon" href="assets/favicon.png" />
7 <title>Examples ▲ Prism</title>
8 <link rel="stylesheet" href="assets/style.css" />
9 <link rel="stylesheet" href="themes/prism.css" data-noprefix />
10 <style>
11 #languages {
12 column-count: 4;
13 }
14 #languages > h1 {
15 margin-top: 0;
16 column-span: all;
17 }
18 #languages label {
19 display: block;
20 padding: .2em;
21 }
22 #languages label[data-id="javascript"] {
23 border-bottom: 1px solid #aaa;
24 padding-bottom: 1em;
25 margin-bottom: 1em;
26 }
27 #languages .unavailable {
28 color: #aaa;
29 }
30 #languages input {
31 margin-right: .7em;
32 }
33
34 #examples > section {
35 display: block;
36 margin: auto;
37 max-width: 900px;
38 }
39 #examples h3 {
40 margin: 1em 0 0.3em;
41 }
42 ul {
43 padding-left: 40px;
44 }
45 </style>
46 <script src="assets/vendor/prefixfree.min.js"></script>
47
48 <script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
49 <script src="https://www.google-analytics.com/ga.js" async></script>
50 </head>
51 <body>
52
53 <header>
54 <div class="intro" data-src="assets/templates/header-main.html" data-type="text/html"></div>
55
56 <h2>Examples</h2>
57 <p>The examples in this page serve a dual purpose: They act as unit tests, making it easy to spot bugs, and at the same time demonstrate what Prism can do, on simple and on edge cases.</p>
58 </header>
59
60 <section class="language-markup">
61 <h1>Different markup</h1>
62
63 <h2>code.language-css</h2>
64 <code class="language-css">p { color: red; }</code>
65
66 <h2>pre.language-css > code</h2>
67 <pre class="language-css"><code>p { color: red; }</code></pre>
68
69 <h2>pre > code.language-css</h2>
70 <pre><code class="language-css">p { color: red; }</code></pre>
71
72 <h2>pre.language-css > code.language-*</h2>
73 <pre class="language-css"><code class="language-*">p { color: red; }</code></pre>
74
75 <h2>code.lang-css</h2>
76 <code class="lang-css">p { color: red; }</code>
77
78 <h2>pre.lang-css > code</h2>
79 <pre class="lang-css"><code>p { color: red; }</code></pre>
80
81 <h2>pre > code</h2>
82 <p>No language, should inherit .language-markup</p>
83 <pre><code>&lt;p>hi!&lt;/p></code></pre>
84
85 <h2>code.language-*</h2>
86 <p>No language, should inherit .language-markup</p>
87 <code class="language-*">&lt;p>hi!&lt;/p></code>
88
89 <h2>code.language-none</h2>
90 <p>Should not be highlighted.</p>
91 <code class="language-none">&lt;p>hi!&lt;/p></code>
92 </section>
93
94 <section>
95 <h1>Per language examples</h1>
96 <div id="languages"></div>
97 </section>
98 <section id="examples"></section>
99
100 <footer data-src="assets/templates/footer.html" data-type="text/html"></footer>
101
102 <script src="assets/vendor/utopia.js"></script>
103 <script src="prism.js"></script>
104 <script src="plugins/autoloader/prism-autoloader.js" data-autoloader-path="components/"></script>
105 <script src="components.js"></script>
106 <script src="assets/code.js"></script>
107 <script src="assets/vendor/promise.js"></script>
108 <script src="assets/examples.js"></script>
109
110 </body>
111 </html>