Bolt\Controller\Backend\FileManager::getCodeMirrorPlugins PHP Method

getCodeMirrorPlugins() private method

private getCodeMirrorPlugins ( Bolt\Filesystem\Handler\FileInterface $file )
$file Bolt\Filesystem\Handler\FileInterface
    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 [];
        }
    }