You can still have syntax highlight in editing mode with WYSIWYG. Zettlr for instance does that well:
It simply colours the words inside the code block differently to get syntax highlight while editing.
(For what it’s worth, Zettlr also uses code-mirror so this feature should be possible with Obsidian too.)