Public
Back
Version 19
7/13/2024
/** @jsxImportSource https://esm.sh/react */
import { useEffect, useRef, useState } from "https://esm.sh/react";
import { render } from "https://esm.town/v/jxnblk/resrvStreaming";
// codemirror
import { defaultKeymap } from "https://esm.sh/@codemirror/commands";
import {
crosshairCursor,
drawSelection,
dropCursor,
EditorView,
highlightActiveLine,
highlightActiveLineGutter,
highlightSpecialChars,
keymap,
lineNumbers,
rectangularSelection,
} from "https://esm.sh/@codemirror/view";
import { vim } from "https://esm.sh/@replit/codemirror-vim";
import { basicSetup } from "https://esm.sh/codemirror";
export default render(App, import.meta.url);
function App() {
const [ref, view] = useCodemirror();
return (
<html>
<head>
<title>editor</title>
{style}
</head>
<body>
<h1>Hello</h1>
<div
ref={ref}
id="editor"
Updated: July 30, 2024