Add matchbrackets addon

This commit is contained in:
pathmapper 2019-10-29 10:52:06 +01:00
parent 673887d93b
commit b963fe9619
2 changed files with 4 additions and 1 deletions

View file

@ -47,5 +47,5 @@
}
.cm-s-maputnik .CodeMirror-matchingbracket {
text-decoration: underline; color: white !important;
color: white !important;
}

View file

@ -7,6 +7,7 @@ import CodeMirror from 'codemirror';
import 'codemirror/mode/javascript/javascript'
import 'codemirror/addon/lint/lint'
import 'codemirror/addon/edit/matchbrackets'
import 'codemirror/lib/codemirror.css'
import 'codemirror/addon/lint/lint.css'
import '../../codemirror-maputnik.css'
@ -47,6 +48,7 @@ class JSONEditor extends React.Component {
viewportMargin: Infinity,
lineNumbers: true,
lint: true,
matchBrackets: true,
gutters: ["CodeMirror-lint-markers"],
scrollbarStyle: "null",
});
@ -112,6 +114,7 @@ class JSONEditor extends React.Component {
viewportMargin: Infinity,
lineNumbers: true,
lint: true,
matchBrackets: true,
gutters: ["CodeMirror-lint-markers"],
scrollbarStyle: "null",
}