0.1.4 • Published 12 months ago
codemirror-lang-ggplot2 v0.1.4
Ggplot2 language mode for code-mirror6
install package
npm i codemirror-lang-ggplot2use it
import CodeMirror from "@uiw/react-codemirror";
import {Ggplot2} from "codemirror-lang-ggplot2"
...
return (
<CodeMirror
extensions={[Ggplot2]}
...
/>
);
...development
reference: https://github.com/codemirror/lang-example