@alicloud/rc-codemirror
CodeMirror 5 的 React 封装,适用于极简的场景。
预加载以下样式:
codemirror/lib/codemirror.csscodemirror/display/fullscreen.csscodemirror/theme/mdn-like.csscodemirror/theme/mdn-like.csscodemirror/addon/fold/foldgutter.csscodemirror/addon/dialog/dialog.csscodemirror/addon/search/matchesonscrollbar.csscodemirror/addon/lint/lint.css
预加载以下 mode:
codemirror/mode/javascript/javascript支持如下conf.modetext/javascripttext/ecmascriptapplication/javascriptapplication/x-javascriptapplication/ecmascriptapplication/jsonapplication/x-jsonapplication/manifest+jsonapplication/ld+jsontext/typescriptapplication/typescript
codemirror/mode/css/css支持如下conf.modetext/csstext/x-scsstext/x-lesstext/x-gss
codemirror/mode/htmlmixed/htmlmixed支持如下conf.modetext/markdowntext/x-markdown
预加载以下插件:
codemirror/addon/lint/lintcodemirror/addon/selection/active-linecodemirror/addon/fold/foldcodecodemirror/addon/fold/foldguttercodemirror/addon/fold/brace-foldcodemirror/addon/fold/indent-foldcodemirror/addon/edit/matchbracketscodemirror/addon/edit/closebracketscodemirror/addon/edit/closetagcodemirror/addon/dialog/dialogcodemirror/addon/search/searchcodemirror/addon/search/searchcursorcodemirror/addon/search/jump-to-linecodemirror/addon/search/matchesonscrollbar
其他需要的可以在自己的应用下进行二次封装。