forgot to modify config.php

This commit is contained in:
Marcus 2023-06-22 15:20:58 +02:00
parent b0afedf4f2
commit a205a70ef3
2 changed files with 19 additions and 15 deletions

View file

@ -2,22 +2,26 @@
/* /*
* size: tiny, small, full * size: tiny, small, full
* *
* tiny: 21KB (Markup, HTML, XML, SVG, MathML, SSML, Atom, RSS, CSS, C-like, JavaScript) * tiny: 21KB (Markup, HTML, XML, SVG, MathML, SSML, Atom, RSS, CSS, C-like, JavaScript)
* *
* small: 95KB (Markup, HTML, XML,SVG, MathML, SSML, Atom, RSS, CSS, C-Linke, JavaScript * small: 95KB (Markup, HTML, XML,SVG, MathML, SSML, Atom, RSS, CSS, C-Linke, JavaScript
* Apache, Bash, Batch, BBCode, C, C#, C++, CSV, Diff, Go, HTTP, ini, Java * Apache, Arduino, Bash Shell, Batch, BBCode, C, C#, C++, CMake, CSV, Diff,
* JSON, Makefile, Markdown, nginx, Perl, PHP, PowerShell, Python, Ruby * Docker, Git, Go, HTTP, ini, Java, JSON, Log file, Makefile, Markdown,nginx,
* Shell session, SQL, VB.Net, Wiki markup, YML) * Pascal, Perl, PHP, PowerShell, Python, Ruby, Shell session, SQL, Typescript,
* VB.Net, Visual Basic, Wiki markup, YML)
* *
* full: 567KB (see https://prismjs.com/index.html#supported-languages for list of supported languages) * full: 567KB (see https://prismjs.com/index.html#supported-languages for list of supported languages)
* *
* theme: coy, dark, default, funky, okaidia, solarizedlight, tomorrow, twilight * theme: coy, dark, default, funky, okaidia, solarizedlight, tomorrow, twilight
* *
* plugins: line-numbers, unescaped-markup, diff-highlight, toolbar, copy-to-clipboard (depends on toolbar)
*
*/ */
return [ return [
// change here // change here
'size' => 'small', 'size' => 'small',
'theme' => 'okaidia', 'theme' => 'okaidia',
'plugins' => ['unescaped-markup', 'line-numbers', 'diff-highlight'],
] ]
?> ?>

View file

@ -34,13 +34,12 @@ function plugin_syntaxhighlighter_add($lang=null) {
$pdir=plugin_geturl('syntaxhighlighter'); $pdir=plugin_geturl('syntaxhighlighter');
// create array containing the used languages // create array containing the used languages
$languages[] = "{$lang}"; $languages[] = "{$lang}";
// remove unique // remove unique
$languages = array_unique($languages); $languages = array_unique($languages);
return $languages; return $languages;
} }
@ -73,6 +72,7 @@ function plugin_syntaxhighlighter_foot() {
$pdir=plugin_geturl('syntaxhighlighter'); $pdir=plugin_geturl('syntaxhighlighter');
// javascript part // javascript part
echo <<<PRISMBOX echo <<<PRISMBOX
<!-- start of prism.js footer --> <!-- start of prism.js footer -->
@ -84,7 +84,7 @@ echo <<<PRISMBOX
<!-- call wrap_pre_tags() from syntaxhighlighter-ng.js --> <!-- call wrap_pre_tags() from syntaxhighlighter-ng.js -->
<script type="text/javascript"> <script type="text/javascript">
var used_languages = {$used_languages}; var used_languages = {$used_languages};
var used_languages = {$used_plugins}; var used_plugins = {$used_plugins};
wrap_pre_tags(used_languages, used_plugins); wrap_pre_tags(used_languages, used_plugins);
</script> </script>