Update index.html
This commit is contained in:
parent
bc40084fbd
commit
51f0c0fbef
1 changed files with 24 additions and 9 deletions
33
index.html
33
index.html
|
@ -230,13 +230,16 @@
|
||||||
<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>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/rust/rust.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.15/mode/rust/rust.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/go/go.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/go/go.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/c/c.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/python/python.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.17/mode/python/python.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/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/css/css.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/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/clike/clike.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
@ -246,9 +249,9 @@
|
||||||
theme: "dracula",
|
theme: "dracula",
|
||||||
autoCloseBrackets: true,
|
autoCloseBrackets: true,
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
indentUnit: 2,
|
indentUnit: 1,
|
||||||
tabSize: 2,
|
tabSize: 4,
|
||||||
indentWithTabs: false,
|
indentWithTabs: true,
|
||||||
lineWrapping: true,
|
lineWrapping: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -257,7 +260,7 @@
|
||||||
fileList = document.getElementById("file-list");
|
fileList = document.getElementById("file-list");
|
||||||
files = {
|
files = {
|
||||||
"Welcome2SneedCode.md":
|
"Welcome2SneedCode.md":
|
||||||
"# Welcome to sneedCode\n\nThis is a speedy web-based code editor made \n to look familiar to the user but with a different workflow. \n\n Made with <3 by Sneed Group.",
|
"# Welcome to sneedCode\n\nThis is a speedy web-based code editor made \n to look familiar to the user but with a different workflow. \n\n Made with <3 by the Sneed Group.",
|
||||||
};
|
};
|
||||||
currentFile = "Welcome2SneedCode.md";
|
currentFile = "Welcome2SneedCode.md";
|
||||||
|
|
||||||
|
@ -308,16 +311,28 @@
|
||||||
return "rust";
|
return "rust";
|
||||||
case "go":
|
case "go":
|
||||||
return "go";
|
return "go";
|
||||||
|
case "c":
|
||||||
|
return "clike";
|
||||||
case "cpp":
|
case "cpp":
|
||||||
return "cpp";
|
return "clike";
|
||||||
case "h":
|
case "h":
|
||||||
return "cpp";
|
return "clike";
|
||||||
case "json":
|
case "json":
|
||||||
return "json";
|
return "json";
|
||||||
case "xml":
|
case "xml":
|
||||||
return "xml";
|
return "xml";
|
||||||
case "py":
|
case "py":
|
||||||
return "python";
|
return "python";
|
||||||
|
case "sh":
|
||||||
|
return "shell";
|
||||||
|
case "bat":
|
||||||
|
return "batch";
|
||||||
|
case "cmd":
|
||||||
|
return "batch";
|
||||||
|
case "ps1":
|
||||||
|
return "powershell";
|
||||||
|
case "php":
|
||||||
|
return "php"
|
||||||
default:
|
default:
|
||||||
return "text/plain";
|
return "text/plain";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue