1
1
<!DOCTYPE html>
2
2
< html >
3
-
4
- < head >
5
- < meta charset ="utf-8 ">
3
+ < head >
4
+ < meta charset ="utf-8 " />
6
5
< title > HighlightJS: code</ title >
7
6
8
7
<!-- https://cdnjs.com/libraries/highlight.js -->
9
8
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
+ />
15
17
16
18
<!-- 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 >
20
20
21
- < script > hljs . highlightAll ( ) ; </ script >
21
+ < script >
22
+ hljs . highlightAll ( ) ;
23
+ </ script >
22
24
23
25
< 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
+ }
27
35
</ style >
28
- </ head >
36
+ </ head >
29
37
30
- < body >
38
+ < body >
31
39
< h1 > Programming Languages</ h1 >
32
40
33
41
< h2 > Python</ h2 >
34
42
< 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 >
39
47
</ pre >
40
48
41
-
42
49
< h2 > C#</ h2 >
43
50
< 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 >
52
59
</ pre >
53
60
54
-
55
61
< h2 > Java</ h2 >
56
62
< pre >
57
- < code class ="java ">
58
- String[] names = { "Zoe", "Chloe", "Joey" };
63
+ < code class ="java ">
64
+ String[] names = { "Zoe", "Chloe", "Joey" };
59
65
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 >
65
71
</ pre >
66
- </ body >
67
-
68
- </ html >
72
+ </ body >
73
+ </ html >
0 commit comments