Skip to content
Advertisement

Tag: ace-editor

temporarily disable/toggle syntax highlighting in ace

Is there a way to toggle syntax-highlighting in ace.js? I know you can switch between syntax-highlighting modes with editor.setMode(), but what about just straight turning the syntax-highlighting off? I can’t seem to find any docs on this Answer You can toggle it with css, let’s say the class of your ACE editor is .ace-xcode, here you can toggle a class

Advertisement