mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 18:01:17 +01:00
Add matchbrackets addon
This commit is contained in:
parent
673887d93b
commit
b963fe9619
2 changed files with 4 additions and 1 deletions
|
@ -47,5 +47,5 @@
|
|||
}
|
||||
|
||||
.cm-s-maputnik .CodeMirror-matchingbracket {
|
||||
text-decoration: underline; color: white !important;
|
||||
color: white !important;
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue