-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Romain Beauxis
committed
Oct 26, 2023
1 parent
e276ec7
commit 26d1b04
Showing
7 changed files
with
185 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"codemirror": "https://esm.sh/[email protected]", | ||
"@codemirror/state": "https://esm.sh/@codemirror/[email protected]", | ||
"@uiw/codemirror-theme-github": "https://esm.sh/@uiw/[email protected]", | ||
"@codemirror/language": "https://esm.sh/@codemirror/[email protected]", | ||
"@lezer/highlight": "https://esm.sh/@lezer/[email protected]", | ||
"@lezer/lr": "https://esm.sh/@lezer/[email protected]", | ||
"codemirror-lang-liquidsoap": "./dist/index.js" | ||
} | ||
} | ||
</script> | ||
<script type="module"> | ||
import { basicSetup, EditorView } from "codemirror"; | ||
import { githubLight } from "@uiw/codemirror-theme-github"; | ||
import { liquidsoap } from "codemirror-lang-liquidsoap"; | ||
|
||
new EditorView({ | ||
doc: `# ✨ Welcome to liquidsoap's test editor! ✨ | ||
# Write your code here: | ||
`, | ||
extensions: [ | ||
basicSetup, | ||
liquidsoap(), | ||
githubLight | ||
], | ||
parent: document.getElementById("editor") | ||
}); | ||
|
||
</script> | ||
</head> | ||
<body> | ||
<div id="editor"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.