diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 4edb2bbc..cf35bede 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -49,6 +49,7 @@ // highlight.js style // for dark theme use 'ir-black' $highlightjs_style = 'vs'; +$highlightjs_style_dark = 'vs2015'; // Enable ace.js (https://ace.c9.io/) on view's page $edit_files = true; @@ -171,7 +172,7 @@ } define('ACE_FONTSIZE', isset($ace_fontsize) ? $ace_fontsize : 12); -define('ACE_THEME', isset($ace_theme) ? $ace_theme : 'textmate'); +define('ACE_THEME', isset($ace_theme) ? $ace_theme : (FM_THEME == 'dark' ? 'twilight' : 'textmate')); // External CDN resources that can be used in the HTML (replace for GDPR compliance) $external = array( @@ -179,6 +180,7 @@ 'css-dropzone' => '', 'css-font-awesome' => '', 'css-highlightjs' => '', + 'css-highlightjs-dark' => '', 'js-ace' => '', 'js-bootstrap' => '', 'js-dropzone' => '', @@ -1934,7 +1936,7 @@ class="edit-file"> ' . fm_enc($content) . ''; + $content = '
' . fm_enc($content) . ''; } echo $content; } @@ -4036,7 +4038,7 @@ function fm_show_header() - +