react-ace-editor
react-ace-editor copied to clipboard
Can't modify the mode and language
I've tried several time to modify the initial theme and language but without success. Here's my code. Any help would be appreciated
render() { return (<> <ReactAce mode={this.props.language} theme={this.props.them} name="code" style={{width: "100%", height: "500px", fontSize: "12px"}} editorProps={{$blockScrolling: Infinity}} onLoad={(editor) => { editor.focus(); editor.getSession().setUseWrapMode(true); }} ref={instance => { this.ace = instance; }} /> </>); }