simogeo / Filemanager

An open-source file manager released under MIT license. Up-to-date for PHP connector. This package is DEPRECATED. Now, please use RichFileManager available at : https://github.com/servocoder/RichFilemanager.
938 stars 351 forks source link

Codemirror Syntax Highlighter unresponsive #421

Closed ghost closed 8 years ago

ghost commented 9 years ago

When opening files after setting the Syntax highlighter to true it takes longer, it has no effect whatsoever. It's still white.

{ "_comment": "IMPORTANT : go to the wiki page to know about options configuration https://github.com/simogeo/Filemanager/wiki/Filemanager-configuration-file", "options": { "culture": "en", "lang": "php", "theme": "flat-dark", "defaultViewMode": "grid", "autoload": true, "showFullPath": false, "showTitleAttr": false, "browseOnly": false, "showConfirmation": true, "showThumbs": true, "generateThumbnails": true, "searchBox": true, "listFiles": true, "fileSorting": "default", "chars_only_latin": true, "dateFormat": "d M Y H:i", "serverRoot": false, "fileRoot": "/home/ubuntu/uploads/", "baseUrl": false, "logger": false, "capabilities": ["select", "download", "rename", "delete", "replace"], "plugins": [] }, "security": { "allowFolderDownload": false, "allowChangeExtensions": false, "allowNoExtension": false, "uploadPolicy": "ALLOW_ALL", "uploadRestrictions": [ "jpg", "jpe", "jpeg", "gif", "png", "svg", "txt", "pdf", "odp", "ods", "odt", "rtf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "csv", "ogv", "mp4", "webm", "m4v", "ogg", "mp3", "wav", "zip", "rar" ] }, "upload": { "multiple": true, "number": 5, "overwrite": false, "imagesOnly": false, "fileSizeLimit": 16 }, "exclude": { "unallowed_files": [ ".htaccess", "web.config" ], "unallowed_dirs": [ "_thumbs", ".CDN_ACCESS_LOGS", "cloudservers" ], "unallowed_files_REGEXP": "/^./", "unallowed_dirs_REGEXP": "/^./" }, "images": { "imagesExt": [ "jpg", "jpe", "jpeg", "gif", "png", "svg" ], "resize": { "enabled":true, "maxWidth": 1280, "maxHeight": 1024 } }, "videos": { "showVideoPlayer": true, "videosExt": [ "ogv", "mp4", "webm", "m4v" ], "videosPlayerWidth": 400, "videosPlayerHeight": 222 }, "audios": { "showAudioPlayer": true, "audiosExt": [ "ogg", "mp3", "wav" ] }, "pdfs": { "showPdfReader": true, "pdfsExt": [ "pdf", "odp" ], "pdfsReaderWidth": "640", "pdfsReaderHeight": "480"
}, "edit": { "enabled": true, "lineNumbers": true, "lineWrapping": true, "codeHighlight": true, "theme": "3024-night", "editExt": [ "txt", "java", "cpp", "c", "csv" ] }, "customScrollbar": { "enabled": true, "theme": "inset-2-dark", "button": true }, "extras": { "extra_js": [], "extra_js_async": true }, "icons": { "path": "images/fileicons/", "directory": "_Open.png", "default": "default.png" }, "url": "https://github.com/simogeo/Filemanager", "version": "2.0.0-dev" }

simogeo commented 8 years ago

Except for txt, wanted languages i.e c, cpp, java, ...) are not implemented. See https://github.com/simogeo/Filemanager/blob/master/scripts/CodeMirror/dynamic-mode.js

Try with php for examples, it will work well. Please implement wanted language reporting to CodeMirror doc and PR.

setting the Syntax highlighter to true it takes longer

of course, it affects performance ...