-
Notifications
You must be signed in to change notification settings - Fork 2
/
Prism.html
81 lines (66 loc) · 2.11 KB
/
Prism.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Prism</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/prism.css">
</head>
<body>
<div class="container">
<h1 class="text-center">PRISM</h1>
<article>
<h2>HTML</h2>
<h3>Example</h3>
<figure>
<pre><code class="language-markup"><script type="prism-html-markup"><div>
<h1>Prism, it's working !</h1>
</div></script></code></pre>
</figure>
<h3>Code snippet</h3>
<figure>
<pre><code class="language-markup"><pre><code class="language-markup"></code></pre></code></pre>
<figcaption>Replace less than signs with <kbd>&lt;</kbd> inside the code tags</figcaption>
</figure>
<h3>Code snippet with Javascript</h3>
<figure>
<pre><code class="language-markup"><pre><code class="language-markup"><script type="prism-html-markup"></script></code></pre></code></pre>
<figcaption>No need to replace less than signs thanks to Javascript</figcaption>
</figure>
</article>
<hr><br>
<article>
<h2>CSS</h2>
<h3>Example</h3>
<figure>
<pre><code class="language-css">.prism::after {
content: "Prism, it's working !";
}</code></pre>
</figure>
</article>
<h3>Code snippet</h3>
<figure>
<pre><code class="language-markup"><pre><code class="language-css"></code></pre></code></pre>
</figure>
</article>
<hr><br>
<article>
<h2>Javascript</h2>
<h3>Example</h3>
<figure>
<pre><code class="language-javascript">function Prism() {
console.log("Prism, it's working !");
};</code></pre>
</figure>
<h3>Code snippet</h3>
<figure>
<pre><code class="language-markup"><pre><code class="language-javascript"></code></pre></code></pre>
</figure>
</article>
<hr><br>
</div>
<script src="js/prism.js"></script>
</body>
</html>