Codemirror's default mode is surely html. Also, use xml syntax highlighting for html mode.
specify editor syntax in xml files
use the proper parsers for htmlmixed