( value )
| 75 | } |
| 76 | |
| 77 | updateLanguageSettings( value ) { |
| 78 | const settings = getLanguageSettings( value ); |
| 79 | |
| 80 | this.editor.codemirror.setOption( 'mode', value ); |
| 81 | |
| 82 | Object.keys( settings ).forEach( key => { |
| 83 | this.editor.codemirror.setOption( key, settings[ key ] ); |
| 84 | }); |
| 85 | } |
| 86 | |
| 87 | render() { |
| 88 | return ( |
no test coverage detected