Skip to content

Commit a7ead7e

Browse files
author
Sam Vitare
committed
more updates
1 parent 4b46f5c commit a7ead7e

File tree

2 files changed

+47
-41
lines changed

2 files changed

+47
-41
lines changed

highlight_code.html

+46-41
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,73 @@
11
<!DOCTYPE html>
22
<html>
3-
4-
<head>
5-
<meta charset="utf-8">
3+
<head>
4+
<meta charset="utf-8" />
65
<title>HighlightJS: code</title>
76

87
<!-- https://cdnjs.com/libraries/highlight.js -->
98

10-
<!-- HighlightJS CSS: Horizon Light theme used -->
11-
<link rel="stylesheet"
12-
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/base16/horizon-light.min.css"
13-
integrity="sha512-FWEm8inOQkOfnKDUTa6xvKF5Xx34TNRYhkY4QFyuLXMeeOLcHEYuh12ouQu786TeFRamKcJIIxTWF3BDOwn91A=="
14-
crossorigin="anonymous" referrerpolicy="no-referrer" />
9+
<!-- HighlightJS CSS: a11y-dark theme used -->
10+
<link
11+
rel="stylesheet"
12+
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/a11y-dark.min.css"
13+
integrity="sha512-Vj6gPCk8EZlqnoveEyuGyYaWZ1+jyjMPg8g4shwyyNlRQl6d3L9At02ZHQr5K6s5duZl/+YKMnM3/8pDhoUphg=="
14+
crossorigin="anonymous"
15+
referrerpolicy="no-referrer"
16+
/>
1517

1618
<!-- HighlightJS script -->
17-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"
18-
integrity="sha512-Pbb8o120v5/hN/a6LjF4N4Lxou+xYZ0QcVF8J6TWhBbHmctQWd8O6xTDmHpE/91OjPzCk4JRoiJsexHYg4SotQ=="
19-
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
19+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
2020

21-
<script>hljs.highlightAll();</script>
21+
<script>
22+
hljs.highlightAll();
23+
</script>
2224

2325
<style>
24-
body { margin: 25px; }
25-
h1 { text-align: center; }
26-
h2 { color: blueviolet; }
26+
body {
27+
margin: 25px;
28+
}
29+
h1 {
30+
text-align: center;
31+
}
32+
h2 {
33+
color: blueviolet;
34+
}
2735
</style>
28-
</head>
36+
</head>
2937

30-
<body>
38+
<body>
3139
<h1>Programming Languages</h1>
3240

3341
<h2>Python</h2>
3442
<pre>
35-
<code class="python">
36-
for character in "abc":
37-
print(character.upper()) # Prints A, then B, then C
38-
</code>
43+
<code class="python">
44+
for character in "abc":
45+
print(character.upper()) # Prints A, then B, then C
46+
</code>
3947
</pre>
4048

41-
4249
<h2>C#</h2>
4350
<pre>
44-
<code class="csharp">
45-
public class Cat {
46-
// Method of the Cat class
47-
public void speak() {
48-
Console.writeline("Meow!");
49-
}
50-
}
51-
</code>
51+
<code class="csharp">
52+
public class Cat {
53+
// Method of the Cat class
54+
public void speak() {
55+
Console.writeline("Meow!");
56+
}
57+
}
58+
</code>
5259
</pre>
5360

54-
5561
<h2>Java</h2>
5662
<pre>
57-
<code class="java">
58-
String[] names = { "Zoe", "Chloe", "Joey" };
63+
<code class="java">
64+
String[] names = { "Zoe", "Chloe", "Joey" };
5965

60-
// Print all of the names in the array
61-
for (String name in names) {
62-
System.out.println(name);
63-
}
64-
</code>
66+
// Print all of the names in the array
67+
for (String name in names) {
68+
System.out.println(name);
69+
}
70+
</code>
6571
</pre>
66-
</body>
67-
68-
</html>
72+
</body>
73+
</html>

local-storage/save_colors.html

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
What color would you like the text?<br />
2525
<input id="text-color" type="color" />
2626
</div>
27+
2728
<br />
2829

2930
<div>

0 commit comments

Comments
 (0)