Pass content-type to codemirror mode option for syntax highlight

Fixes #605