MCPcopy Index your code
hub / github.com/cedaro/shiny-code / updateLanguageSettings

Method updateLanguageSettings

blocks/code/code-editor.js:77–85  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

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 (

Callers 2

componentDidMountMethod · 0.95
componentDidUpdateMethod · 0.95

Calls 1

getLanguageSettingsFunction · 0.90

Tested by

no test coverage detected