-
Notifications
You must be signed in to change notification settings - Fork 5
/
code.html
120 lines (81 loc) · 2.39 KB
/
code.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!doctype html>
<meta charset="utf-8" />
<link href="css/html-slideshow.bundle.min.css" rel="stylesheet" />
<script src="js/html-slideshow.bundle.min.js"></script>
<title>mithril-slides</title>
<script data-role="slide" data-markdown type="text/html">
This slideshow shows various code constructs for slides.
</script>
<script data-role="slide" data-markdown data-language="php" type="text/html">
# Markdown
```
<?php echo "Hello world"; ?>
```
</script>
<script data-role="slide" data-markdown type="text/html">
# Syntax coloured PHP
<pre data-code="code1"></pre>
</script>
<script id="code1" data-role="code" data-language="php" type="text/html">
<?php
// A PHP comment
echo "Hello world";
?>
</script>
<script data-role="slide" data-markdown type="text/html">
# Syntax coloured SQL
<pre data-code="code2"></pre>
</script>
<script id="code2" data-role="code" data-language="sql" type="text/html">
-- A SQL comment
SELECT * FROM user WHERE password = 'santa';
</script>
<script data-role="slide" data-markdown type="text/html">
# Syntax coloured Bash
<pre data-code="code3"></pre>
</script>
<script id="code3" data-role="code" data-language="bash" type="text/html">
$ git clone https://github.com/mosbth/Anax-base.git
$ cd Anax-base
$ ls
LICENSE.txt README.md src/ theme/ webroot/
$ firefox http://localhost/git/Anax-base/hello.php
</script>
<script data-role="slide" data-markdown type="text/html">
# Syntax coloured None
<pre data-code="code4"></pre>
</script>
<script id="code4" data-role="code" data-language="" type="text/html">
$ git clone https://github.com/mosbth/Anax-base.git
$ cd Anax-base
$ ls
LICENSE.txt README.md src/ theme/ webroot/
$ firefox http://localhost/git/Anax-base/hello.php
</script>
<script data-role="slide" data-markdown type="text/html">
# Syntax coloured HTML
<pre data-code="code5"></pre>
</script>
<script id="code5" data-role="code" data-language="html" type="text/html">
<h1>Here is a bullet list</h1>
<ul>
<li>bullet</li>
<li>another bullet</li>
<li>the third bullet</li>
</ul>
<!-- A html comment -->
</script>
<script data-role="slide" data-markdown type="text/html">
# Syntax coloured CSS
<pre data-code="code6"></pre>
</script>
<script id="code6" data-role="code" data-language="css" type="text/html">
th,
td {
border: 1px solid white;
padding: 0.1em 0.5em;
}
/* A CSS comment */
</script>
<script data-role="slide" type="text/html">
</script>