codemirror will switch between c mode, scheme mode, and plain text appropriately