0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-26 21:18:12 +00:00

syntax highligting for legacy as well

This commit is contained in:
Víctor Losada Hernández
2026-03-26 14:22:39 +01:00
parent f50c25b906
commit b0ebeaffb9
5 changed files with 125 additions and 45 deletions

View File

@@ -447,6 +447,7 @@ const Editor = createReactClass({
value={this.props.brew.text}
onChange={this.props.onBrewChange('text')}
editorTheme={this.state.editorTheme}
renderer={this.props.brew.renderer}
rerenderParent={this.rerenderParent}
style={{ height: `calc(100% - ${this.state.snippetBarHeight}px)` }} />
</>;
@@ -462,6 +463,7 @@ const Editor = createReactClass({
onChange={this.props.onBrewChange('style')}
enableFolding={true}
editorTheme={this.state.editorTheme}
renderer={this.props.brew.renderer}
rerenderParent={this.rerenderParent}
style={{ height: `calc(100% - ${this.state.snippetBarHeight}px)` }} />
</>;
@@ -492,6 +494,7 @@ const Editor = createReactClass({
onChange={this.props.onBrewChange('snippets')}
enableFolding={true}
editorTheme={this.state.editorTheme}
renderer={this.props.brew.renderer}
rerenderParent={this.rerenderParent}
style={{ height: `calc(100% -${this.state.snippetBarHeight}px)` }} />
</>;