Skip to content

sql mode can not fold #305

Open
Open
@superw-123

Description

import {Controlled as CodeMirror} from 'react-codemirror2';

const [instance, setInstance] = useState(null);
<CodeMirror
editorDidMount={editor => setInstance(editor)}
value={'select * from tablea'}
options={{
mode: 'text/sql',
foldGutter: true,
gutters: [
'CodeMirror-linenumbers',
'CodeMirror-foldgutter',
'CodeMirror-lint-markers',
],
}}
/>

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions