-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathCodeSnippetLanguages.ts
312 lines (271 loc) · 7.69 KB
/
CodeSnippetLanguages.ts
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
// Copyright (c) 2020, jupytercalpoly
// Distributed under the terms of the BSD-3 Clause License.
import { LabIcon } from '@jupyterlab/ui-components';
import babelSVGstr from '../style/icon/language_icons/babel.svg';
import cSVGstr from '../style/icon/language_icons/c.svg';
import clojureSVGstr from '../style/icon/language_icons/clojure.svg';
import coconutSVGstr from '../style/icon/language_icons/coconut.svg';
import coffeescriptSVGstr from '../style/icon/language_icons/coffeescript.svg';
import cppSVGstr from '../style/icon/language_icons/cpp.svg';
import csharpSVGstr from '../style/icon/language_icons/csharp.svg';
import erlangSVGstr from '../style/icon/language_icons/erlang.svg';
import forthSVGstr from '../style/icon/language_icons/forth.svg';
import fortranSVGstr from '../style/icon/language_icons/fortran.svg';
import fsharpSVGstr from '../style/icon/language_icons/fsharp.svg';
import goSVGstr from '../style/icon/language_icons/go.svg';
import groovySVGstr from '../style/icon/language_icons/groovy.svg';
import haskellSVGstr from '../style/icon/language_icons/haskell.svg';
import javaSVGstr from '../style/icon/language_icons/java.svg';
import javascriptSVGstr from '../style/icon/language_icons/javascript.svg';
import juliaSVGstr from '../style/icon/language_icons/julia.svg';
import kotlinSVGstr from '../style/icon/language_icons/kotlin.svg';
import lispSVGstr from '../style/icon/language_icons/lisp.svg';
import livescriptSVGstr from '../style/icon/language_icons/livescript.svg';
import luaSVGstr from '../style/icon/language_icons/lua.svg';
import matlabSVGstr from '../style/icon/language_icons/matlab.svg';
import nodejsSVGstr from '../style/icon/language_icons/nodejs.svg';
import ocamlSVGstr from '../style/icon/language_icons/ocaml.svg';
import perlSVGstr from '../style/icon/language_icons/perl.svg';
import phpSVGstr from '../style/icon/language_icons/php.svg';
import processingSVGstr from '../style/icon/language_icons/processing.svg';
import prologSVGstr from '../style/icon/language_icons/prolog.svg';
import purescriptSVGstr from '../style/icon/language_icons/purescript.svg';
import qsharpSVGstr from '../style/icon/language_icons/qsharp.svg';
import rubySVGstr from '../style/icon/language_icons/ruby.svg';
import rustSVGstr from '../style/icon/language_icons/rust.svg';
import sasSVGstr from '../style/icon/language_icons/sas.svg';
import sbtSVGstr from '../style/icon/language_icons/sbt.svg';
import scalaSVGstr from '../style/icon/language_icons/scala.svg';
import schemeSVGstr from '../style/icon/language_icons/scheme.svg';
import typescriptSVGstr from '../style/icon/language_icons/typescript.svg';
import markdownSVGstr from '../style/icon/language_icons/markdown.svg';
import powershellSVGstr from '../style/icon/language_icons/powershell.svg';
/**
* List of languages supported by JupyterLab
*/
export const SUPPORTED_LANGUAGES = [
'Python',
'Java',
'R',
'Julia',
'Matlab',
'Octave',
'Scheme',
'Processing',
'Scala',
'Groovy',
'Agda',
'Fortran',
'Haskell',
'Ruby',
'TypeScript',
'JavaScript',
'CoffeeScript',
'LiveScript',
'C#',
'F#',
'Go',
'Galileo',
'Gfm',
'Erlang',
'PARI/GP',
'Aldor',
'OCaml',
'Forth',
'Perl',
'PHP',
'Scilab',
'bash',
'zsh',
'Clojure',
'Hy',
'Lua',
'PureScript',
'Q',
'Cryptol',
'C++',
'Xonsh',
'Prolog',
'Common Lisp',
'Maxima',
'C',
'Kotlin',
'Pike',
'NodeJS',
'Singular',
'TaQL',
'Coconut',
'Babel',
'Clojurescript',
'sbt',
'Guile',
'SAS',
'Stata',
'Racekt',
'SQL',
'HiveQL',
'Rust',
'Rascal',
'Q#',
'Markdown',
'Powershell',
];
/**
* Language icons
*/
export const babelIcon = new LabIcon({
name: 'custom-ui-components:babel',
svgstr: babelSVGstr,
});
export const javaIcon = new LabIcon({
name: 'custom-ui-components:java',
svgstr: javaSVGstr,
});
export const juliaIcon = new LabIcon({
name: 'custom-ui-components:julia',
svgstr: juliaSVGstr,
});
export const matlabIcon = new LabIcon({
name: 'custom-ui-components:matlab',
svgstr: matlabSVGstr,
});
export const schemeIcon = new LabIcon({
name: 'custom-ui-components:scheme',
svgstr: schemeSVGstr,
});
export const processingIcon = new LabIcon({
name: 'custom-ui-components:processing',
svgstr: processingSVGstr,
});
export const scalaIcon = new LabIcon({
name: 'custom-ui-components:scala',
svgstr: scalaSVGstr,
});
export const groovyIcon = new LabIcon({
name: 'custom-ui-components:groovy',
svgstr: groovySVGstr,
});
export const fortranIcon = new LabIcon({
name: 'custom-ui-components:fortran',
svgstr: fortranSVGstr,
});
export const haskellIcon = new LabIcon({
name: 'custom-ui-components:haskell',
svgstr: haskellSVGstr,
});
export const rubyIcon = new LabIcon({
name: 'custom-ui-components:ruby',
svgstr: rubySVGstr,
});
export const typescriptIcon = new LabIcon({
name: 'custom-ui-components:typescript',
svgstr: typescriptSVGstr,
});
export const javascriptIcon = new LabIcon({
name: 'custom-ui-components:javascript',
svgstr: javascriptSVGstr,
});
export const coffeescriptIcon = new LabIcon({
name: 'custom-ui-components:coffeescript',
svgstr: coffeescriptSVGstr,
});
export const livescriptIcon = new LabIcon({
name: 'custom-ui-components:livescript',
svgstr: livescriptSVGstr,
});
export const csharpIcon = new LabIcon({
name: 'custom-ui-components:csharp',
svgstr: csharpSVGstr,
});
export const fsharpIcon = new LabIcon({
name: 'custom-ui-components:fsharp',
svgstr: fsharpSVGstr,
});
export const goIcon = new LabIcon({
name: 'custom-ui-components:go',
svgstr: goSVGstr,
});
export const erlangIcon = new LabIcon({
name: 'custom-ui-components:erlang',
svgstr: erlangSVGstr,
});
export const ocamlIcon = new LabIcon({
name: 'custom-ui-components:ocaml',
svgstr: ocamlSVGstr,
});
export const forthIcon = new LabIcon({
name: 'custom-ui-components:forth',
svgstr: forthSVGstr,
});
export const perlIcon = new LabIcon({
name: 'custom-ui-components:perl',
svgstr: perlSVGstr,
});
export const phpIcon = new LabIcon({
name: 'custom-ui-components:php',
svgstr: phpSVGstr,
});
export const clojureIcon = new LabIcon({
name: 'custom-ui-components:clojure',
svgstr: clojureSVGstr,
});
export const luaIcon = new LabIcon({
name: 'custom-ui-components:lua',
svgstr: luaSVGstr,
});
export const purescriptIcon = new LabIcon({
name: 'custom-ui-components:purescript',
svgstr: purescriptSVGstr,
});
export const cppIcon = new LabIcon({
name: 'custom-ui-components:cpp',
svgstr: cppSVGstr,
});
export const prologIcon = new LabIcon({
name: 'custom-ui-components:prolog',
svgstr: prologSVGstr,
});
export const lispIcon = new LabIcon({
name: 'custom-ui-components:lisp',
svgstr: lispSVGstr,
});
export const cIcon = new LabIcon({
name: 'custom-ui-components:c',
svgstr: cSVGstr,
});
export const kotlinIcon = new LabIcon({
name: 'custom-ui-components:kotlin',
svgstr: kotlinSVGstr,
});
export const nodejsIcon = new LabIcon({
name: 'custom-ui-components:nodejs',
svgstr: nodejsSVGstr,
});
export const sasIcon = new LabIcon({
name: 'custom-ui-components:sas',
svgstr: sasSVGstr,
});
export const coconutIcon = new LabIcon({
name: 'custom-ui-components:coconut',
svgstr: coconutSVGstr,
});
export const sbtIcon = new LabIcon({
name: 'custom-ui-components:sbt',
svgstr: sbtSVGstr,
});
export const rustIcon = new LabIcon({
name: 'custom-ui-components:rust',
svgstr: rustSVGstr,
});
export const qsharpIcon = new LabIcon({
name: 'custom-ui-components:qsharp',
svgstr: qsharpSVGstr,
});
export const markdownIcon = new LabIcon({
name: 'custom-ui-components:markdown',
svgstr: markdownSVGstr,
});
export const powershellIcon = new LabIcon({
name: 'custom-ui-components:powershell',
svgstr: powershellSVGstr,
});