mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 18:41:16 +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 {
|
.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/mode/javascript/javascript'
|
||||||
import 'codemirror/addon/lint/lint'
|
import 'codemirror/addon/lint/lint'
|
||||||
|
import 'codemirror/addon/edit/matchbrackets'
|
||||||
import 'codemirror/lib/codemirror.css'
|
import 'codemirror/lib/codemirror.css'
|
||||||
import 'codemirror/addon/lint/lint.css'
|
import 'codemirror/addon/lint/lint.css'
|
||||||
import '../../codemirror-maputnik.css'
|
import '../../codemirror-maputnik.css'
|
||||||
|
@ -47,6 +48,7 @@ class JSONEditor extends React.Component {
|
||||||
viewportMargin: Infinity,
|
viewportMargin: Infinity,
|
||||||
lineNumbers: true,
|
lineNumbers: true,
|
||||||
lint: true,
|
lint: true,
|
||||||
|
matchBrackets: true,
|
||||||
gutters: ["CodeMirror-lint-markers"],
|
gutters: ["CodeMirror-lint-markers"],
|
||||||
scrollbarStyle: "null",
|
scrollbarStyle: "null",
|
||||||
});
|
});
|
||||||
|
@ -112,6 +114,7 @@ class JSONEditor extends React.Component {
|
||||||
viewportMargin: Infinity,
|
viewportMargin: Infinity,
|
||||||
lineNumbers: true,
|
lineNumbers: true,
|
||||||
lint: true,
|
lint: true,
|
||||||
|
matchBrackets: true,
|
||||||
gutters: ["CodeMirror-lint-markers"],
|
gutters: ["CodeMirror-lint-markers"],
|
||||||
scrollbarStyle: "null",
|
scrollbarStyle: "null",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue