|
16 | 16 | LEARNCS_DOMAIN = "learncs.org"
|
17 | 17 | LEARNHTML_DOMAIN = "learn-html.org"
|
18 | 18 | LEARNGO_DOMAIN = "learn-golang.org"
|
| 19 | +LEARNSCALA_DOMAIN = "learnscala.org" |
| 20 | +LEARNSOLIDITY_DOMAIN = "learnsolidity.org" |
19 | 21 |
|
20 | 22 | DOMAIN_DATA = {
|
21 | 23 | LEARNPYTHON_DOMAIN : {
|
22 | 24 | "language" : "python",
|
| 25 | + "codemirror_mode": "python", |
| 26 | + "prism_mode": "language-python", |
23 | 27 | "analytics" : "UA-22741967-1",
|
24 | 28 | "namespace" : "learnpython.org",
|
25 | 29 | "full_url" : "http://learnpython.org",
|
|
30 | 34 | "logo" : "/static/img/logos/learnpython.png",
|
31 | 35 | "share_logo" : "/static/img/share-logos/learnpython-share.png",
|
32 | 36 | "language_uppercase" : "Python",
|
33 |
| - "twitter" : "@learnpython", |
34 | 37 | "favicon" : "favicon-learnpython.ico",
|
35 |
| - "copyright" : "Copyright © LearnPython.org.", |
36 | 38 | "default_code" : """# Welcome to the Interactive Python Tutorial.
|
37 | 39 | # Start by choosing a chapter and
|
38 | 40 | # write your code in this window.
|
|
42 | 44 | },
|
43 | 45 | LEARNHTML_DOMAIN : {
|
44 | 46 | "language" : "html",
|
| 47 | + "codemirror_mode": "text/html", |
| 48 | + "prism_mode": "language-html", |
45 | 49 | "analytics" : "UA-22741967-11",
|
46 | 50 | "namespace" : "learn-html.org",
|
47 | 51 | "full_url" : "http://learn-html.org",
|
|
52 | 56 | "logo" : "/static/img/logos/learnhtml.png",
|
53 | 57 | "share_logo" : "/static/img/share-logos/learnhtml-share.png",
|
54 | 58 | "language_uppercase" : "HTML",
|
55 |
| - "twitter" : "@learnhtml", |
56 | 59 | "favicon" : "favicon-learnhtml.ico",
|
57 |
| - "copyright" : "Copyright © Learn-HTML.org.", |
58 | 60 | "default_code" : """<!-- Welcome to the Interactive HTML & CSS Tutorial.
|
59 | 61 | Start by choosing a chapter and
|
60 | 62 | write your code in this window.
|
|
73 | 75 |
|
74 | 76 | LEARNC_DOMAIN : {
|
75 | 77 | "language" : "c",
|
| 78 | + "codemirror_mode": "text/x-csrc", |
| 79 | + "prism_mode": "language-c", |
76 | 80 | "analytics" : "UA-22741967-3",
|
77 | 81 | "namespace" : "learn-c.org",
|
78 | 82 | "full_url" : "http://learn-c.org",
|
|
83 | 87 | "logo" : "/static/img/logos/learn-c.png",
|
84 | 88 | "share_logo" : "/static/img/share-logos/learn-c-share.png",
|
85 | 89 | "language_uppercase" : "C",
|
86 |
| - "twitter" : "@learnc", |
87 | 90 | "favicon" : "favicon-learn-c.ico",
|
88 |
| - "copyright" : "Copyright © Learn-C.org. ", |
89 | 91 | "default_code" : """/* Welcome to the Interactive C Tutorial.
|
90 | 92 | Start by choosing a chapter and
|
91 | 93 | write your code in this window. */
|
|
109 | 111 | },
|
110 | 112 | LEARNCPP_DOMAIN : {
|
111 | 113 | "language" : "c++11",
|
| 114 | + "codemirror_mode": "text/x-csrc", |
| 115 | + "prism_mode": "language-cpp", |
112 | 116 | "analytics" : "UA-22741967-12",
|
113 | 117 | "namespace" : "learn-cpp.org",
|
114 | 118 | "full_url" : "http://learn-cpp.org",
|
|
119 | 123 | "logo" : "/static/img/logos/learn-cpp.png",
|
120 | 124 | "share_logo" : "/static/img/share-logos/learn-cpp-share.png",
|
121 | 125 | "language_uppercase" : "C++",
|
122 |
| - "twitter" : "@learncpp", |
123 | 126 | "favicon" : "favicon-learn-cpp.ico",
|
124 |
| - "copyright" : "Copyright © Learn-cpp.org. ", |
125 | 127 | "default_code" : """// Welcome to the Interactive C++ Tutorial.
|
126 | 128 | // Start by choosing a chapter and
|
127 | 129 | // write your code in this window.
|
|
147 | 149 | },
|
148 | 150 | LEARNJAVA_DOMAIN : {
|
149 | 151 | "language" : "java",
|
| 152 | + "codemirror_mode": "text/x-java", |
| 153 | + "prism_mode": "language-java", |
150 | 154 | "analytics" : "UA-22741967-4",
|
151 | 155 | "namespace" : "learnjavaonline.org",
|
152 | 156 | "full_url" : "http://learnjavaonline.org",
|
|
157 | 161 | "logo" : "/static/img/logos/learnjavaonline.png",
|
158 | 162 | "share_logo" : "/static/img/share-logos/learnjavaonline-share.png",
|
159 | 163 | "language_uppercase" : "Java",
|
160 |
| - "twitter" : "@learnjava", |
161 | 164 | "favicon" : "favicon-learnjava.ico",
|
162 |
| - "copyright" : "Copyright © LearnJavaOnline.org.", |
163 | 165 | "default_code" : """// Welcome to the Interactive Java Tutorial.
|
164 | 166 | // Start by choosing a chapter and
|
165 | 167 | // write your code in this window.
|
|
186 | 188 | },
|
187 | 189 | LEARNJS_DOMAIN : {
|
188 | 190 | "language" : "javascript",
|
| 191 | + "codemirror_mode": "text/javascript", |
| 192 | + "prism_mode": "language-javascript", |
189 | 193 | "analytics" : "UA-22741967-5",
|
190 | 194 | "namespace" : "learn-js.org",
|
191 | 195 | "full_url" : "http://learn-js.org",
|
|
196 | 200 | "logo" : "/static/img/logos/learn-js.png",
|
197 | 201 | "share_logo" : "/static/img/share-logos/learn-js-share.png",
|
198 | 202 | "language_uppercase" : "JavaScript",
|
199 |
| - "twitter" : "@learnjs", |
200 | 203 | "favicon" : "favicon-learn-js.ico",
|
201 |
| - "copyright" : "Copyright © Learn-JS.org.", |
202 | 204 | "default_code" : """// Welcome to the Interactive JavaScript Tutorial.
|
203 | 205 | // Start by choosing a chapter and
|
204 | 206 | // write your code in this window.
|
|
208 | 210 | },
|
209 | 211 | LEARNRUBY_DOMAIN : {
|
210 | 212 | "language" : "ruby",
|
| 213 | + "codemirror_mode": "text/x-ruby", |
| 214 | + "prism_mode": "language-ruby", |
211 | 215 | "analytics" : "UA-22741967-6",
|
212 |
| - "namespace" : "learnrubyonline.org", |
| 216 | + "namespace" : "learnrubyonline.org", |
213 | 217 | "full_url" : "http://learnrubyonline.org",
|
214 | 218 | "sender" : "Learn-JS.org <[email protected]>",
|
215 | 219 | "styled_domain" : "LearnRubyOnline.org",
|
|
218 | 222 | "logo" : "/static/img/logos/learnrubyonline.png",
|
219 | 223 | "share_logo" : "/static/img/share-logos/learnrubyonline-share.png",
|
220 | 224 | "language_uppercase" : "Ruby",
|
221 |
| - "twitter" : "@learnruby", |
222 | 225 | "favicon" : "favicon-ruby.ico",
|
223 |
| - "copyright" : "Copyright © LearnRubyOnline.org.", |
224 | 226 | "default_code" : """# Welcome to the Interactive Ruby Tutorial.
|
225 | 227 | # Start by choosing a chapter and
|
226 | 228 | # write your code in this window.
|
|
230 | 232 | },
|
231 | 233 | LEARNSHELL_DOMAIN : {
|
232 | 234 | "language" : "bash",
|
| 235 | + "codemirror_mode": "text/x-sh", |
| 236 | + "prism_mode": "language-bash", |
233 | 237 | "analytics" : "UA-22741967-7",
|
234 | 238 | "namespace" : "learnshell.org",
|
235 | 239 | "full_url" : "http://learnshell.org",
|
|
240 | 244 | "logo" : "/static/img/logos/learnshell.png",
|
241 | 245 | "share_logo" : "/static/img/share-logos/learnshell-share.png",
|
242 | 246 | "language_uppercase" : "Shell Programming",
|
243 |
| - "twitter" : "@learnshell", |
244 | 247 | "favicon" : "favicon-shell.ico",
|
245 |
| - "copyright" : "Copyright © LearnShell.org.", |
246 | 248 | "default_code" : """#!/bin/bash
|
247 | 249 | # Welcome to the Interactive Shell Tutorial.
|
248 | 250 | # Start by choosing a chapter and
|
|
254 | 256 |
|
255 | 257 | LEARNPERL_DOMAIN : {
|
256 | 258 | "language" : "perl",
|
| 259 | + "codemirror_mode": "text/x-perl", |
| 260 | + "prism_mode": "language-perl", |
257 | 261 | "analytics" : "UA-22741967-8",
|
258 | 262 | "namespace" : "learn-perl.org",
|
259 | 263 | "full_url" : "http://learn-perl.org",
|
|
264 | 268 | "logo" : "/static/img/logos/learn-perl.png",
|
265 | 269 | "share_logo" : "/static/img/share-logos/learn-perl-share.png",
|
266 | 270 | "language_uppercase" : "Perl",
|
267 |
| - "twitter" : "@learnperl", |
268 | 271 | "favicon" : "favicon-learn-perl.ico",
|
269 |
| - "copyright" : "Copyright © Learn-Perl.org.", |
270 | 272 | "default_code" : """# Welcome to the Interactive Perl Tutorial.
|
271 | 273 | # Start by choosing a chapter and write your code in this window.
|
272 | 274 |
|
|
275 | 277 |
|
276 | 278 | LEARNPHP_DOMAIN : {
|
277 | 279 | "language" : "php",
|
| 280 | + "codemirror_mode": "application/x-httpd-php", |
| 281 | + "prism_mode": "language-php", |
278 | 282 | "analytics" : "UA-22741967-9",
|
279 | 283 | "namespace" : "learn-php.org",
|
280 | 284 | "full_url" : "http://learn-php.org",
|
|
285 | 289 | "logo" : "/static/img/logos/learn-php.png",
|
286 | 290 | "share_logo" : "/static/img/share-logos/learn-php-share.png",
|
287 | 291 | "language_uppercase" : "PHP",
|
288 |
| - "twitter" : "@learnphp", |
289 | 292 | "favicon" : "favicon-learn-php.ico",
|
290 |
| - "copyright" : "Copyright © Learn-PHP.org.", |
291 | 293 | "default_code" : """<?php
|
292 | 294 | // Welcome to the Interactive PHP Tutorial.
|
293 | 295 | // Start by choosing a chapter and
|
|
305 | 307 |
|
306 | 308 | LEARNCS_DOMAIN : {
|
307 | 309 | "language" : "c#",
|
| 310 | + "codemirror_mode": "text/x-csharp", |
| 311 | + "prism_mode": "language-csharp", |
308 | 312 | "analytics" : "UA-22741967-10",
|
309 | 313 | "namespace" : "learncs.org",
|
310 | 314 | "full_url" : "http://learncs.org",
|
|
315 | 319 | "logo" : "/static/img/logos/learncs.png",
|
316 | 320 | "share_logo" : "/static/img/share-logos/learncs-share.png",
|
317 | 321 | "language_uppercase" : "C#",
|
318 |
| - "twitter" : "@learncs", |
319 | 322 | "favicon" : "favicon-learncs.ico",
|
320 |
| - "copyright" : "Copyright © LearnCS.org.", |
321 | 323 | "default_code" : """// Welcome to the Interactive C# Tutorial.
|
322 | 324 | // Start by choosing a chapter and write your code in this window.
|
323 | 325 |
|
|
348 | 350 |
|
349 | 351 | LEARNGO_DOMAIN : {
|
350 | 352 | "language" : "go",
|
| 353 | + "codemirror_mode": "text/x-go", |
| 354 | + "prism_mode": "language-go", |
351 | 355 | "analytics" : "UA-22741967-13",
|
352 | 356 | "namespace" : "learn-golang.org",
|
353 | 357 | "full_url" : "http://learn-golang.org",
|
|
358 | 362 | "logo" : "/static/img/logos/learn-golang.png",
|
359 | 363 | "share_logo" : "/static/img/share-logos/learn-golang-share.png",
|
360 | 364 | "language_uppercase" : "Go",
|
361 |
| - "twitter" : "@learngolang", |
362 | 365 | "favicon" : "favicon-learngolang.ico",
|
363 |
| - "copyright" : "Copyright © Learn-GoLang.org.", |
364 | 366 | "default_code" : """// Welcome to the Interactive Go Tutorial.
|
365 | 367 | // Start by choosing a chapter, write your code in this window.
|
366 | 368 | package main
|
|
386 | 388 | }
|
387 | 389 | """,
|
388 | 390 |
|
| 391 | + }, |
| 392 | + LEARNSCALA_DOMAIN : { |
| 393 | + "language" : "scala", |
| 394 | + "codemirror_mode": "text/x-scala", |
| 395 | + "prism_mode": "language-scala", |
| 396 | + "analytics" : "UA-22741967-14", |
| 397 | + "namespace" : "learnscala.org", |
| 398 | + "full_url" : "http://learnscala.org", |
| 399 | + "sender" : "LearnScala.org <[email protected]>", |
| 400 | + "styled_domain" : "LearnScala.org", |
| 401 | + "contact_email" : "[email protected]", |
| 402 | + "support_email" : "[email protected]", |
| 403 | + "logo" : "/static/img/logos/learnscala.png", |
| 404 | + "share_logo" : "/static/img/share-logos/learnscala-share.png", |
| 405 | + "language_uppercase" : "Scala", |
| 406 | + "favicon" : "favicon-learnscala.ico", |
| 407 | + "default_code" : """// Welcome to the Interactive Scala Tutorial. |
| 408 | +// Start by choosing a chapter, write your code in this window. |
| 409 | +object Main { |
| 410 | + def main(args: Array[String]) { |
| 411 | + println("Hello, World!\\n"); |
| 412 | + } |
| 413 | +} |
| 414 | +
|
| 415 | +""", |
| 416 | + "container_word": "object", |
| 417 | + "container_indent": " ", |
| 418 | + "container": """object Test { |
| 419 | + def main(args: Array[String]) { |
| 420 | + println("Hello, World!\\n"); |
| 421 | + } |
| 422 | +} |
| 423 | +
|
| 424 | +""", |
| 425 | + }, |
| 426 | + LEARNSOLIDITY_DOMAIN: { |
| 427 | + "language" : "solidity", |
| 428 | + "codemirror_mode": "text/x-solidity", |
| 429 | + "prism_mode": "language-solidity", |
| 430 | + "analytics" : "UA-22741967-15", |
| 431 | + "namespace" : "learnsolidity.org", |
| 432 | + "full_url" : "http://learnsolidity.org", |
| 433 | + "sender" : "LearnSolidity.org <[email protected]>", |
| 434 | + "styled_domain" : "LearnSolidity.org", |
| 435 | + "contact_email" : "[email protected]", |
| 436 | + "support_email" : "[email protected]", |
| 437 | + "logo" : "/static/img/logos/learnsolidity.png", |
| 438 | + "share_logo" : "/static/img/share-logos/learnsolidity-share.png", |
| 439 | + "language_uppercase" : "Solidity", |
| 440 | + "favicon" : "favicon-learnsolidity.ico", |
| 441 | + "default_code" : """// Welcome to the Interactive Solidity Tutorial. |
| 442 | +// Start by choosing a chapter, write your code in this window. |
| 443 | +
|
| 444 | +""", |
| 445 | + "container_word" : "", |
| 446 | + "container_indent" : "", |
| 447 | + "container" : """ |
| 448 | +""", |
| 449 | + |
| 450 | + |
389 | 451 | },
|
390 | 452 | }
|
0 commit comments