add _really_ basic multilanguage support. I'll come back for css later

This commit is contained in:
ansuz
2016-06-22 22:54:42 +02:00
parent 31aa09d6f6
commit a89511985f
2 changed files with 29 additions and 1 deletions

13
www/code/modes.js Normal file
View File

@@ -0,0 +1,13 @@
define(function () {
return [
"Javascript javascript",
"Python python",
"Mixed_HTML htmlmixed",
].map(function (line) {
var kv = line.split(/\s/);
return {
language: kv[0].replace(/_/g, ' '),
mode: kv[1]
};
});
});