This could be quicker to understand with a name like toggleSyntaxHighlighting(). If we change how syntax highlighting is provided later, the name here would still make sense.
Since 'Editor' is used for the whole application, it takes a bit of extra time to figure out what level this is working on, so I think it is worth avoiding in general.