* added matchbrackets

* Added css for matching brackets
This commit is contained in:
Meru Patel 2018-10-08 22:44:59 +05:30 committed by Cassie Tarakajian
parent e83654f6ad
commit 19bffe58cf
4 changed files with 9 additions and 7 deletions

View file

@ -19,6 +19,7 @@ import 'codemirror/addon/search/searchcursor';
import 'codemirror/addon/search/matchesonscrollbar';
import 'codemirror/addon/search/match-highlighter';
import 'codemirror/addon/search/jump-to-line';
import 'codemirror/addon/edit/matchbrackets';
import { JSHINT } from 'jshint';
import { CSSLint } from 'csslint';
@ -87,6 +88,7 @@ class Editor extends React.Component {
gutters: ['CodeMirror-foldgutter', 'CodeMirror-lint-markers'],
keyMap: 'sublime',
highlightSelectionMatches: true, // highlight current search match
matchBrackets: true,
lint: {
onUpdateLinting: ((annotations) => {
this.props.hideRuntimeErrorWarning();

View file

@ -97,8 +97,8 @@ $p5-contrast-activeline: #999999;
}
.cm-s-p5-contrast .CodeMirror-matchingbracket {
outline: 1px solid $p5-contrast-darkgray;
color: black !important;
outline: 1px solid $p5-contrast-lightgray;
color: $p5-contrast-white !important;
}
.cm-s-p5-contrast .cm-qualifier {

View file

@ -100,8 +100,8 @@ $p5-dark-activeline: rgb(207, 207, 207);
}
.cm-s-p5-dark .CodeMirror-matchingbracket {
outline: 1px solid $p5-dark-darkgray;
color: black !important;
outline: 1px solid $p5-dark-gray;
color: $p5-dark-white !important;
}
.cm-s-p5-dark .cm-qualifier {

View file

@ -98,8 +98,8 @@ $p5-light-activeline: rgb(207, 207, 207);
}
.cm-s-p5-light .CodeMirror-matchingbracket {
outline: 1px solid $p5-light-number;
color: black !important;
outline: 1px solid $p5-light-gray;
color: $p5-light-black !important;
}
.cm-s-p5-light .cm-qualifier {