codemirror-lang-macaulay2 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/demo.js DELETED
@@ -1,11 +0,0 @@
1
- import { EditorState } from "@codemirror/state";
2
- import { EditorView, basicSetup } from "codemirror";
3
- import { macaulay2 } from "../dist/index.js";
4
-
5
- new EditorView({
6
- state: EditorState.create({
7
- doc: "R = QQ[x,y,z,w]\nI = monomialCurveIdeal(R, {1,2,3})",
8
- extensions: [basicSetup, macaulay2()]
9
- }),
10
- parent: document.getElementById("editor"),
11
- });
package/demo/demo.js~ DELETED
@@ -1,11 +0,0 @@
1
- import { EditorState } from "@codemirror/state";
2
- import { EditorView, basicSetup } from "@codemirror/basic-setup";
3
- import { myLanguage } from "../dist/index.js"; // Import your language module
4
-
5
- new EditorView({
6
- state: EditorState.create({
7
- doc: "print('Hello, World!')", // Sample code
8
- extensions: [basicSetup, myLanguage()]
9
- }),
10
- parent: document.getElementById("editor"),
11
- });
package/demo/index.html DELETED
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>CodeMirror Macaulay2 Language Module Demo</title>
7
- <style>
8
- body { font-family: sans-serif; padding: 20px; }
9
- .editor { border: 1px solid #ccc; height: 300px; }
10
- </style>
11
- </head>
12
- <body>
13
- <h1>CodeMirror Macaulay2 Language Module Demo</h1>
14
- <div id="editor" class="editor"></div>
15
- <script type="module" src="./bundle.js"></script>
16
- </body>
17
- </html>
package/demo/index.html~ DELETED
@@ -1 +0,0 @@
1
- Hello, world!
@@ -1,11 +0,0 @@
1
- import resolve from "@rollup/plugin-node-resolve"
2
-
3
- export default {
4
- input: "demo/demo.js",
5
- output: {
6
- file: "demo/bundle.js",
7
- format: "iife",
8
- sourcemap: true
9
- },
10
- plugins: [resolve()]
11
- }
@@ -1,11 +0,0 @@
1
- import resolve from "@rollup/plugin-node-resolve";
2
-
3
- export default {
4
- input: "demo/demo.js",
5
- output: {
6
- file: "demo/bundle.js",
7
- format: "iife",
8
- sourcemap: true
9
- },
10
- plugins: [resolve()]
11
- }