1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Bracket matching option added to config

This commit is contained in:
Guilherme Silva
2018-11-08 11:44:03 +00:00
parent 37933782d2
commit db97ab51ac
8 changed files with 284 additions and 122 deletions

View File

@@ -27,12 +27,17 @@ class SnippetEditor extends React.Component {
dragDrop: false,
foldGutter: true,
gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'],
autoCloseBrackets: {
pairs: '()[]{}\'\'""$$**``',
autoCloseBrackets: (this.enableBracketMatching ? {
pairs: '()[]{}\'\'""$$**``ll',
triples: '```"""\'\'\'',
explode: '[]{}``$$',
override: true
},
}: {
pairs: '',
triples: '',
explode: '',
override: true
}),
mode: 'null'
})
this.cm.setSize('100%', '100%')