-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
168 lines (156 loc) · 8.83 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Amazing Code</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css">
<!-- themes -->
<!-- <link rel="stylesheet" href="css/themes/all.css"> -->
</head>
<body>
<div class="container">
<div class="row">
<div class="header col-12 text-center">
<h1 class="text-center">Amazing code</h1>
<p class="text-center">A simple tool to highlight your code without any effort, just copy/past your code in the textarea and choose the theme/style you prefer.</p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<textarea class="code-text-area" name="" id="code_text_area" cols="30" rows="10" placeholder="Past your code here..."></textarea>
</div>
<div class="col-md-6">
<div class="container-box">
<div class="code-container">
<div id="code_area">
<div class="code_header"></div>
<div id="code_body" class="code_body">
<br>
<br>
<h5 class="text-placehoder text-center p-5"> <i class="fa-solid fa-wand-sparkles fa-2x"></i> <br><br> A wizzard will do some magic and show you a colorfull code in here</h5>
</div>
<div class="code_footer">
</div>
</div>
<div class="code-btn-holder">
<button class="btn btn-success copy-btn mx-2" id="copyHtml">Copy HTML</button>
<button class="btn btn-success copy-btn mx-2" id="copyRichText">Copy RichText</button>
</div>
<textarea id="hiddenToCopy" readonly style="opacity: 0;position: absolute;right: 0;bottom: 0;z-index: -15;"></textarea>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 form-group">
<h4>Language</h4>
<select name="language" id="language" class="dark text-light form-control">
<option value="java" selected>java</option>
<option value="python">python</option>
<option value="c">c</option>
<option value="php">php</option>
<option value="javascript">javascript</option>
<option value="html">html</option>
<option value="css">css</option>
<option value="csharp">csharp</option>
<option value="sql">sql</option>
<option value="go">go</option>
<option value="haskell">haskell</option>
<option value="coffeescript">coffeescript</option>
<option value="d">d</option>
<option value="generic">generic</option>
<option value="json">json</option>
<option value="lua">lua</option>
<option value="r">r</option>
<option value="ruby">ruby</option>
<option value="scheme">scheme</option>
<option value="shell">shell</option>
<option value="smalltalk">smalltalk</option>
</select>
</div>
<div class="col-md-6 form-group">
<h4>Theme</h4>
<select name="theme" id="theme" class="dark text-light form-control">
<option value="0">all-hallows-eve</option>
<option value="1">blackboard</option>
<option value="2">dreamweaver</option>
<option value="3">espresso-libre</option>
<option value="4">github</option>
<option value="5">kimbie-dark</option>
<option value="6">kimbie-light</option>
<option value="7">monokai</option>
<option value="8">obsidian</option>
<option value="9">paraiso-dark</option>
<option value="10">paraiso-light</option>
<option value="11">pastie</option>
<option value="12">rainbow</option>
<option value="13">solarized-dark</option>
<option value="14">solarized-light</option>
<option value="15">sunburst</option>
<option value="16">tomorrow-night</option>
<option value="17">tricolore</option>
<option value="18">twilight</option>
<option value="19">zenburnesque</option>
</select>
</div>
<div class="col-md-6 form-group">
<h4>Header-Footer</h4>
<select name="isHeader" id="isHeader" class="dark text-light form-control">
<option value="1">Yes</option>
<option value="0">No</option>
</select>
</div>
<div class="col-md-6 form-group">
<h4>Name/Title</h4>
<input type="text" name="scriptName" id="scriptName" class="dark text-light form-control">
</div>
</div>
<div class="row mt-4">
<div class="col-12">
<h3>
How to use
</h3>
<ol>
<li>Paste your code in the text area</li>
<li>Choose the language, the theme, and set other options if needed</li>
<li>The tool will do its magic and show you the styled code</li>
<li>Click Copy HTML button to use it in your blog/email/homework or any texteditor</li>
<li>Click on Copy RichText to use it for Word documents like MS Word or Google Docs</li>
</ol>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/js/all.min.js" integrity="sha512-6PM0qYu5KExuNcKt5bURAoT6KCThUmHRewN3zUFNaoI6Di7XJPTMoT6K0nsagZKk2OB4L7E3q1uQKHNHd4stIQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js" integrity="sha512-aVKKRRi/Q/YV+4mjoKBsE4x3H+BkegoM/em46NNlCqNTmUYADjBbeNefNxYV7giUp0VxICtqdrbqU7iVaeZNXA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/rainbow.min.js"></script>
<!-- Languages -->
<script src="js/language/c.js"></script>
<script src="js/language/coffeescript.js"></script>
<script src="js/language/csharp.js"></script>
<script src="js/language/css.js"></script>
<script src="js/language/d.js"></script>
<script src="js/language/generic.js"></script>
<script src="js/language/go.js"></script>
<script src="js/language/haskell.js"></script>
<script src="js/language/html.js"></script>
<script src="js/language/java.js"></script>
<script src="js/language/javascript.js"></script>
<script src="js/language/json.js"></script>
<script src="js/language/lua.js"></script>
<script src="js/language/php.js"></script>
<script src="js/language/python.js"></script>
<script src="js/language/r.js"></script>
<script src="js/language/ruby.js"></script>
<script src="js/language/scheme.js"></script>
<script src="js/language/shell.js"></script>
<script src="js/language/smalltalk.js"></script>
<script src="js/language/sql.js"></script>
<script src="js/themes.js"></script>
<script src="js/script.js"></script>
</body>
</html>