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:
@@ -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%')
|
||||
|
||||
Reference in New Issue
Block a user