Closed cyrill-martin closed 4 years ago
To set the correct syntax highlighting for the ace editor in angular you have to import the according module:
E.g.
import 'ace-builds/src-noconflict/mode-python';
Then you can do something like this:
HTML: <ace-editor #editor>
<ace-editor #editor>
TS:
@ViewChild('editor') editor; this.editor.setMode('python')
Or directly in the HTML: <ace-editor [mode]="'python'">
<ace-editor [mode]="'python'">
amazing!
done
To set the correct syntax highlighting for the ace editor in angular you have to import the according module:
E.g.
import 'ace-builds/src-noconflict/mode-python';
Then you can do something like this:
HTML:
<ace-editor #editor>
TS:
Or directly in the HTML:
<ace-editor [mode]="'python'">