-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (85 loc) · 3.31 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My highlight</title>
<!-- hightlight.js -->
<link rel="stylesheet" href="css/styles/default.css" type="text/css">
<script src="js/highlight.min.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<script src="js/popper.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<!-- dom to image -->
<script src="js/dom-to-image.min.js" type="text/javascript"></script>
<!-- Custom Styles -->
<link rel="stylesheet" href="css/style.css" type="text/css">
<!-- Custom Scripts -->
<script src="js/script.js" type="text/javascript" defer></script>
</head>
<body>
<main>
<a href="https://github.com/yejun614/my-highlight" target="_blank">Github repository</a>
<h2>Syntax Highlight</h2>
<div class="row g-3 align-items-center">
<div class="col-auto">
<label for="language" class="col-form-label">Language</label>
</div>
<div class="col-auto">
<input type="text" id="language" class="form-control">
</div>
<div class="col-auto">
<span class="form-text">
Programming Language
</span>
</div>
</div>
<div class="row g-3 align-items-center">
<div class="col-auto">
<label for="indent-char" class="col-form-label">Indent</label>
</div>
<div class="col-auto">
<input type="text" id="indent-char" class="form-control">
</div>
<div class="col-auto">
<span class="form-text">
Indent alternative character
</span>
</div>
</div>
<div class="dropdown-wrap">
<div id="style-dropdown" class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Styles
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item disabled">No items</a></li>
</ul>
</div>
<div id="frame-dropdown" class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Frame
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="javascript:setFrame(false)">Just code</a></li>
<li><a class="dropdown-item" href="javascript:setFrame(true)">Table + Line number</a></li>
</ul>
</div>
</div>
<div class="form-floating">
<textarea class="form-control" placeholder="Leave a comment here" id="src-textarea" style="height: 100px"></textarea>
<label for="src-textarea">Source</label>
</div>
<button type="button" class="btn btn-primary" onclick="convert();">Convert</button>
<button type="button" class="btn btn-warning" onclick="copy();">Copy</button>
<button type="button" class="btn btn-info" onclick="saveImage();">Save Image</button>
<pre id="result" class="hljs"></pre>
<footer>
<p>Development by <a href="https://github.com/yejun614" target="_blank">YeJun, Jung ([email protected])</a></p>
<p>Highlight by <a href="https://highlightjs.org/" target="_blank">highlight.js</a></p>
<p>CSS Framework by <a href="https://getbootstrap.com/" target="_blank">Bootstrap</a></p>
</footer>
</main>
</body>
</html>