-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.html
343 lines (322 loc) · 14.8 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<!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'>
<title>CodeMirror Themes</title>
<meta name='description' content='A crap ton of Code Mirror themes'>
<meta name='author' content='Farhad Ghayour, github.com/FarhadG'>
<!--****************************************************************************
* Demo specific stylesheets
*-->
<link rel='stylesheet' href='./node_modules/codemirror/lib/codemirror.css'>
<link rel='stylesheet' href='./demo.css'>
<!--****************************************************************************
* CodeMirror Theme Styles
*-->
<link rel='stylesheet' href='./themes/all-hallow-eve.css'>
<link rel='stylesheet' href='./themes/amy.css'>
<link rel='stylesheet' href='./themes/argonaut.css'>
<link rel='stylesheet' href='./themes/arona.css'>
<link rel='stylesheet' href='./themes/bbedit.css'>
<link rel='stylesheet' href='./themes/bespin.css'>
<link rel='stylesheet' href='./themes/birds-of-paradise.css'>
<link rel='stylesheet' href='./themes/black-pearl-ii.css'>
<link rel='stylesheet' href='./themes/black-pearl.css'>
<link rel='stylesheet' href='./themes/blackboard-black.css'>
<link rel='stylesheet' href='./themes/blackboard.css'>
<link rel='stylesheet' href='./themes/bongzilla.css'>
<link rel='stylesheet' href='./themes/chanfle.css'>
<link rel='stylesheet' href='./themes/chrome-devtools.css'>
<link rel='stylesheet' href='./themes/classic-modified.css'>
<link rel='stylesheet' href='./themes/clouds-midnight.css'>
<link rel='stylesheet' href='./themes/clouds.css'>
<link rel='stylesheet' href='./themes/cobalt.css'>
<link rel='stylesheet' href='./themes/coda.css'>
<link rel='stylesheet' href='./themes/cssedit.css'>
<link rel='stylesheet' href='./themes/cube2media.css'>
<link rel='stylesheet' href='./themes/darkpastel.css'>
<link rel='stylesheet' href='./themes/dawn.css'>
<link rel='stylesheet' href='./themes/django-(smoothy).css'>
<link rel='stylesheet' href='./themes/django.css'>
<link rel='stylesheet' href='./themes/eiffel.css'>
<link rel='stylesheet' href='./themes/emacs-strict.css'>
<link rel='stylesheet' href='./themes/espresso-libre.css'>
<link rel='stylesheet' href='./themes/espresso-soda.css'>
<link rel='stylesheet' href='./themes/espresso-tutti.css'>
<link rel='stylesheet' href='./themes/espresso.css'>
<link rel='stylesheet' href='./themes/fade-to-grey.css'>
<link rel='stylesheet' href='./themes/fake.css'>
<link rel='stylesheet' href='./themes/fantasyscript.css'>
<link rel='stylesheet' href='./themes/fluidvision.css'>
<link rel='stylesheet' href='./themes/freckle.css'>
<link rel='stylesheet' href='./themes/friendship-bracelet.css'>
<link rel='stylesheet' href='./themes/github.css'>
<link rel='stylesheet' href='./themes/glitterbomb.css'>
<link rel='stylesheet' href='./themes/happy-happy-joy-joy-2.css'>
<link rel='stylesheet' href='./themes/idle.css'>
<link rel='stylesheet' href='./themes/idlefingers.css'>
<link rel='stylesheet' href='./themes/iplastic.css'>
<link rel='stylesheet' href='./themes/ir_black.css'>
<link rel='stylesheet' href='./themes/ir_white.css'>
<link rel='stylesheet' href='./themes/johnny.css'>
<link rel='stylesheet' href='./themes/juicy.css'>
<link rel='stylesheet' href='./themes/krtheme.css'>
<link rel='stylesheet' href='./themes/kuroir.css'>
<link rel='stylesheet' href='./themes/lazy.css'>
<link rel='stylesheet' href='./themes/lowlight.css'>
<link rel='stylesheet' href='./themes/mac-classic.css'>
<link rel='stylesheet' href='./themes/made-of-code.css'>
<link rel='stylesheet' href='./themes/magicwb-(amiga).css'>
<link rel='stylesheet' href='./themes/merbivore-soft.css'>
<link rel='stylesheet' href='./themes/merbivore.css'>
<link rel='stylesheet' href='./themes/monoindustrial.css'>
<link rel='stylesheet' href='./themes/monokai-bright.css'>
<link rel='stylesheet' href='./themes/monokai-fannonedition.css'>
<link rel='stylesheet' href='./themes/monokai-sublime.css'>
<link rel='stylesheet' href='./themes/monokai.css'>
<link rel='stylesheet' href='./themes/mreq.css'>
<link rel='stylesheet' href='./themes/nightlion.css'>
<link rel='stylesheet' href='./themes/notebook.css'>
<link rel='stylesheet' href='./themes/oceanic-muted.css'>
<link rel='stylesheet' href='./themes/oceanic.css'>
<link rel='stylesheet' href='./themes/pastels-on-dark.css'>
<link rel='stylesheet' href='./themes/pastie.css'>
<link rel='stylesheet' href='./themes/plasticcodewrap.css'>
<link rel='stylesheet' href='./themes/prospettiva.css'>
<link rel='stylesheet' href='./themes/putty.css'>
<link rel='stylesheet' href='./themes/rails-envy.css'>
<link rel='stylesheet' href='./themes/railscasts.css'>
<link rel='stylesheet' href='./themes/rdark.css'>
<link rel='stylesheet' href='./themes/rhuk.css'>
<link rel='stylesheet' href='./themes/ryan-light.css'>
<link rel='stylesheet' href='./themes/sidewalkchalk.css'>
<link rel='stylesheet' href='./themes/slush-&-poppies.css'>
<link rel='stylesheet' href='./themes/smoothy.css'>
<link rel='stylesheet' href='./themes/solarized-(dark).css'>
<link rel='stylesheet' href='./themes/solarized-(light).css'>
<link rel='stylesheet' href='./themes/spacecadet.css'>
<link rel='stylesheet' href='./themes/spectacular.css'>
<link rel='stylesheet' href='./themes/summer-sun.css'>
<link rel='stylesheet' href='./themes/summerfruit.css'>
<link rel='stylesheet' href='./themes/sunburst.css'>
<link rel='stylesheet' href='./themes/swyphs-ii.css'>
<link rel='stylesheet' href='./themes/tango.css'>
<link rel='stylesheet' href='./themes/text-ex-machina.css'>
<link rel='stylesheet' href='./themes/tomorrow-night-blue.css'>
<link rel='stylesheet' href='./themes/tomorrow-night-bright.css'>
<link rel='stylesheet' href='./themes/tomorrow-night-eighties.css'>
<link rel='stylesheet' href='./themes/tomorrow-night.css'>
<link rel='stylesheet' href='./themes/tomorrow.css'>
<link rel='stylesheet' href='./themes/toulousse-lautrec.css'>
<link rel='stylesheet' href='./themes/toy-chest.css'>
<link rel='stylesheet' href='./themes/tubster.css'>
<link rel='stylesheet' href='./themes/twilight.css'>
<link rel='stylesheet' href='./themes/venom.css'>
<link rel='stylesheet' href='./themes/vibrant-fin.css'>
<link rel='stylesheet' href='./themes/vibrant-ink.css'>
<link rel='stylesheet' href='./themes/vibrant-tango.css'>
<link rel='stylesheet' href='./themes/zenburnesque.css'>
<!--****************************************************************************
* Demo specific scripts
*-->
<script src='./node_modules/codemirror/lib/codemirror.js'></script>
<script src='./node_modules/codemirror/mode/javascript/javascript.js'></script>
<script src='./node_modules/codemirror/addon/selection/active-line.js'></script>
<script src='./node_modules/codemirror/addon/edit/matchbrackets.js'></script>
</head>
<body>
<!--****************************************************************************
* CodeMirror DOM element with some default JavsScript code
*-->
<form>
<textarea id='code' name='code'>
// Underscore.js Sample Code
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the browser, or `exports` on the server.
var root = this;
// Save the previous value of the `_` variable.
var previousUnderscore = root._;
// Save bytes in the minified (but not gzipped) version:
var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
// Create quick reference variables for speed access to core prototypes.
var
push = ArrayProto.push,
slice = ArrayProto.slice,
toString = ObjProto.toString,
hasOwnProperty = ObjProto.hasOwnProperty;
// All **ECMAScript 5** native function implementations that we hope to use
// are declared here.
var
nativeIsArray = Array.isArray,
nativeKeys = Object.keys,
nativeBind = FuncProto.bind,
nativeCreate = Object.create;
// Reusable constructor function for prototype setting.
var Ctor = function(){};
// Create a safe reference to the Underscore object for use below.
var _ = function(obj) {
if (obj instanceof _) return obj;
if (!(this instanceof _)) return new _(obj);
this._wrapped = obj;
};
// Export the Underscore object for **Node.js**, with
// backwards-compatibility for the old `require()` API. If we're in
// the browser, add `_` as a global object.
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = _;
}
}
)();
</textarea>
</form>
<!--****************************************************************************
* Input with the various themes as options
*-->
<section id="header-container">
<select onchange='selectTheme()' id='select'>
<option selected disabled>Select a theme</option>
<option>all-hallow-eve</option>
<option>amy</option>
<option>argonaut</option>
<option>arona</option>
<option>bbedit</option>
<option>bespin</option>
<option>birds-of-paradise</option>
<option>black-pearl-ii</option>
<option>black-pearl</option>
<option>blackboard-black</option>
<option>blackboard</option>
<option>bongzilla</option>
<option>chanfle</option>
<option>chrome-devtools</option>
<option>classic-modified</option>
<option>clouds-midnight</option>
<option>clouds</option>
<option>cobalt</option>
<option>coda</option>
<option>cssedit</option>
<option>cube2media</option>
<option>darkpastel</option>
<option>dawn</option>
<option>django-(smoothy)</option>
<option>django</option>
<option>eiffel</option>
<option>emacs-strict</option>
<option>espresso-libre</option>
<option>espresso-soda</option>
<option>espresso-tutti</option>
<option>espresso</option>
<option>fade-to-grey</option>
<option>fake</option>
<option>fantasyscript</option>
<option>fluidvision</option>
<option>freckle</option>
<option>friendship-bracelet</option>
<option>github</option>
<option>glitterbomb</option>
<option>happy-happy-joy-joy-2</option>
<option>idle</option>
<option>idlefingers</option>
<option>iplastic</option>
<option>ir_black</option>
<option>ir_white</option>
<option>johnny</option>
<option>juicy</option>
<option>krtheme</option>
<option>kuroir</option>
<option>lazy</option>
<option>lowlight</option>
<option>mac-classic</option>
<option>made-of-code</option>
<option>magicwb-(amiga)</option>
<option>merbivore-soft</option>
<option>merbivore</option>
<option>monoindustrial</option>
<option>monokai-bright</option>
<option>monokai-fannonedition</option>
<option>monokai-sublime</option>
<option>monokai</option>
<option>mreq</option>
<option>nightlion</option>
<option>notebook</option>
<option>oceanic-muted</option>
<option>oceanic</option>
<option>pastels-on-dark</option>
<option>pastie</option>
<option>plasticcodewrap</option>
<option>prospettiva</option>
<option>putty</option>
<option>rails-envy</option>
<option>railscasts</option>
<option>rdark</option>
<option>rhuk</option>
<option>ryan-light</option>
<option>sidewalkchalk</option>
<option>slush-&-poppies</option>
<option>smoothy</option>
<option>solarized-(dark)</option>
<option>solarized-(light)</option>
<option>spacecadet</option>
<option>spectacular</option>
<option>summer-sun</option>
<option>summerfruit</option>
<option>sunburst</option>
<option>swyphs-ii</option>
<option>tango</option>
<option>text-ex-machina</option>
<option>tomorrow-night-blue</option>
<option>tomorrow-night-bright</option>
<option>tomorrow-night-eighties</option>
<option>tomorrow-night</option>
<option>tomorrow</option>
<option>toulousse-lautrec</option>
<option>toy-chest</option>
<option>tubster</option>
<option>twilight</option>
<option>venom</option>
<option>vibrant-fin</option>
<option>vibrant-ink</option>
<option>vibrant-tango</option>
<option>zenburnesque</option>
</select>
</section>
<!--****************************************************************************
* Minimal markup for initializing CodeMirror ad listening
* for when the input field has been updated with a new theme
*-->
<script>
var editor = CodeMirror.fromTextArea(document.getElementById('code'), {
lineNumbers: true,
styleActiveLine: true,
matchBrackets: true
});
var input = document.getElementById('select');
function selectTheme() {
var theme = input.options[input.selectedIndex].innerHTML;
editor.setOption('theme', theme);
}
</script>
<!-- Repo Card -->
<script src="https://rawgit.com/FarhadG/repo-card/master/repo-card.min.js"></script>
<script>
RepoCard.configure({
repo: 'code-mirror-themes',
username: 'farhadg',
title: 'Code Mirror Themes',
subtitle: '@farhadg',
thumb: 'url(https://avatars0.githubusercontent.com/u/1647596?v=3&s=460)',
background: 'url(http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/dark_embroidery.png)',
info: 'CodeMirror is a great online editor, however, it is lacking some good themes. So, here are a crap ton for your coding pleasure.',
position: {
bottom: 25,
right: 25
}
});
</script>
</body>
</html>