diff --git a/src/views/text/source.js b/src/views/text/source.js index 585e4bb..1467a97 100644 --- a/src/views/text/source.js +++ b/src/views/text/source.js @@ -132,7 +132,7 @@ export default function(host) { // prevent syntax highlighting for sources over maxSourceSizeToHighlight to avoid page freeze if (source.length < maxSourceSizeToHighlight) { - decorators.push([codeMirrorHighlight(syntax || mime, host), { + decorators.push([codeMirrorHighlight(syntax, host), { html: { open({ data: type }) { return '';