-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeTemplate
More file actions
executable file
·80 lines (68 loc) · 1.81 KB
/
codeTemplate
File metadata and controls
executable file
·80 lines (68 loc) · 1.81 KB
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
#!/usr/bin/bash
Tmp=/tmp/$$
Tmp0=/tmp/$$_$$
Tmp1=/tmp/$$_$$_$$
Tmp2=/tmp/$$_$$_$$_$$
Tmp3=/tmp/$$_$$_$$_$$_$$
trap 'exit 0' INT HUP QUIT TERM ALRM USR1
trap 'rm -f "$Tmp" "$Tmp0" "$Tmp1" "$Tmp2" "$Tmp3"' EXIT
rm -f "$Tmp $Tmp0 $Tmp1 $Tmp2 $Tmp3" >/dev/null 2>&1;
cat <<EOF
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code</title>
<style>
body {
background-color: #1e1e1e; /* Dark background for the page */
color: #d4d4d4; /* Light text color for the page */
}
.code-container {
background-color: #252526; /* Darker background for the code block */
border: 1px solid #333; /* Dark gray border */
padding: 15px;
border-radius: 5px;
overflow-x: auto;
font-family: monospace, sans-serif;
font-size: 24px;
line-height: 1.4;
}
.code-container pre {
margin: 0;
}
.comment {
color: #6a9955; /* Green for comments */
}
.keyword {
color: #569cd6; /* Light blue for keywords */
font-weight: bold;
}
.string {
color: #ce9178; /* Orange/brown for strings */
}
.number {
color: #b5cea8; /* Light green for numbers */
}
.class-name {
color: #4ec9b0; /* Cyan for class names */
}
.method-name {
color: #dcdcaa; /* Yellow for method names */
}
</style>
</head>
<body>
<a href='https://archernar.github.io/files/index.html'>home</a><br>
<h1>Code Library</h1>
<div class="code-container">
<pre>
EOF
cat "$1"
cat <<EOF
</pre>
</div>
</body>
</html>
EOF