more langs!
This commit is contained in:
parent
5d2f2663ba
commit
3e9200cbe1
1 changed files with 26 additions and 7 deletions
33
index.html
33
index.html
|
@ -226,7 +226,7 @@
|
||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/codemirror.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/codemirror.min.js"></script>
|
||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/markdown/markdown.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/gfm/gfm.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/javascript/javascript.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/javascript/javascript.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/xml/xml.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/xml/xml.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/css/css.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/css/css.min.js"></script>
|
||||||
|
@ -236,11 +236,14 @@
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/json/json.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/json/json.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/htmlmixed/htmlmixed.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/htmlmixed/htmlmixed.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/shell/shell.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/shell/shell.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/batchmode/batchmode.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/vbscript/vbscript.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/powershell/powershell.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/powershell/powershell.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/php/php.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/php/php.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/clike/clike.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/clike/clike.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/ruby/ruby.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/ruby/ruby.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/vb/vb.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/lua/lua.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/swift/swift.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
@ -307,7 +310,7 @@
|
||||||
case "css":
|
case "css":
|
||||||
return "css";
|
return "css";
|
||||||
case "md":
|
case "md":
|
||||||
return "markdown";
|
return "gfm";
|
||||||
case "rs":
|
case "rs":
|
||||||
return "rust";
|
return "rust";
|
||||||
case "go":
|
case "go":
|
||||||
|
@ -318,6 +321,18 @@
|
||||||
return "clike";
|
return "clike";
|
||||||
case "h":
|
case "h":
|
||||||
return "clike";
|
return "clike";
|
||||||
|
case "java":
|
||||||
|
return "clike";
|
||||||
|
case "javap":
|
||||||
|
return "clike";
|
||||||
|
case "class":
|
||||||
|
return "clike";
|
||||||
|
case "kt":
|
||||||
|
return "clike";
|
||||||
|
case "swift":
|
||||||
|
return "swift";
|
||||||
|
case "cs":
|
||||||
|
return "clike";
|
||||||
case "json":
|
case "json":
|
||||||
return "json";
|
return "json";
|
||||||
case "xml":
|
case "xml":
|
||||||
|
@ -326,16 +341,20 @@
|
||||||
return "python";
|
return "python";
|
||||||
case "sh":
|
case "sh":
|
||||||
return "shell";
|
return "shell";
|
||||||
case "bat":
|
case "vbs":
|
||||||
return "batchmode";
|
return "vb";
|
||||||
case "cmd":
|
case "vb":
|
||||||
return "batchmode";
|
return "vbnet";
|
||||||
case "ps1":
|
case "ps1":
|
||||||
return "powershell";
|
return "powershell";
|
||||||
case "php":
|
case "php":
|
||||||
return "php";
|
return "php";
|
||||||
case "rb":
|
case "rb":
|
||||||
return "ruby";
|
return "ruby";
|
||||||
|
case "lua":
|
||||||
|
return "lua";
|
||||||
|
case "luau":
|
||||||
|
return "lua";
|
||||||
default:
|
default:
|
||||||
return "text/plain";
|
return "text/plain";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue