Convert Ace highlight rules to the CodeMirror format.