private function getCodeMirrorPlugins(FileInterface $file)
{
switch (strtolower($file->getExtension())) {
case 'twig':
case 'html':
case 'htm':
return ['xml', 'javascript', 'css', 'htmlmixed'];
case 'php':
return ['matchbrackets', 'javascript', 'css', 'htmlmixed', 'clike', 'php'];
case 'yml':
case 'yaml':
return ['yaml'];
case 'md':
case 'markdown':
return ['markdown'];
case 'css':
case 'less':
return ['css'];
case 'js':
return ['javascript'];
default:
return [];
}
}