A proof-of-concept code editor with syntax highlighting that uses
- highlighted-pre-over-textarea approach (like react-simple-code-editor)
- web-tree-sitter for incremental parsing
- diff-match-patch via json0-ot-diff for computing text diffs (needed for using tree-sitter)
- React for DOM updates
For context, see codemirror/dev#109
To start:
npm start
to serve the React app.
node server.js
to serve the Node.js server (required for WASM issues).
This is a very rough prototype and there are known issues.
Feel free to file new issues!