Skip to content

v4.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 19 Jun 06:43
· 458 commits to master since this release

Documentation v4.9.0: https://raw.githack.com/uiwjs/react-codemirror/4f8b8c0/index.html
Comparing Changes: v4.8.1...v4.9.0

<CodeMirror
  value="console.log('hello world!');"
  height="200px"
  theme="dark"
  basicSetup={{
+    lineNumbers: false
  }}
  extensions={[javascript({ jsx: true })]}
  onChange={(value, viewUpdate) => {
    console.log("value:", value);
  }}
/>
export interface BasicSetupOptions {
  lineNumbers?: boolean;
  highlightActiveLineGutter?: boolean;
  highlightSpecialChars?: boolean;
  history?: boolean;
  foldGutter?: boolean;
  drawSelection?: boolean;
  dropCursor?: boolean;
  allowMultipleSelections?: boolean;
  indentOnInput?: boolean;
  syntaxHighlighting?: boolean;
  bracketMatching?: boolean;
  closeBrackets?: boolean;
  autocompletion?: boolean;
  rectangularSelection?: boolean;
  crosshairCursor?: boolean;
  highlightActiveLine?: boolean;
  highlightSelectionMatches?: boolean;
  closeBracketsKeymap?: boolean;
  defaultKeymap?: boolean;
  searchKeymap?: boolean;
  historyKeymap?: boolean;
  foldKeymap?: boolean;
  completionKeymap?: boolean;
  lintKeymap?: boolean;
}