Currently, we have hacks in various places to deal with the fact that we can't easily map back from a CM mode configuration (e.g. CSS mode configured for LESS, or XML mode configured for HTML) to an actual language. We should work with Marijn to figure out a way for CM to expose to us what the actual specific MIME type is for a given location, as opposed to just giving us the main mode plus a configuration bag.
Currently, we have hacks in various places to deal with the fact that we can't easily map back from a CM mode configuration (e.g. CSS mode configured for LESS, or XML mode configured for HTML) to an actual language. We should work with Marijn to figure out a way for CM to expose to us what the actual specific MIME type is for a given location, as opposed to just giving us the main mode plus a configuration bag.