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
*
* 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
* Apache, Bash, Batch, BBCode, C, C#, C++, CSV, Diff, Go, HTTP, ini, Java
* JSON, Makefile, Markdown, nginx, Perl, PHP, PowerShell, Python, Ruby
* Shell session, SQL, VB.Net, Wiki markup, YML)
* small: 95KB (Markup, HTML, XML,SVG, MathML, SSML, Atom, RSS, CSS, C-Linke, JavaScript
* Apache, Arduino, Bash Shell, Batch, BBCode, C, C#, C++, CMake, CSV, Diff,
* Docker, Git, Go, HTTP, ini, Java, JSON, Log file, Makefile, Markdown,nginx,
* 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
*
*
* plugins: line-numbers, unescaped-markup, diff-highlight, toolbar, copy-to-clipboard (depends on toolbar)
*
*/
return [
// change here
'size' => 'small',
'theme' => 'okaidia',
// change here
'size' => 'small',
'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');
// create array containing the used languages
// create array containing the used languages
$languages[] = "{$lang}";
// remove unique
// remove unique
$languages = array_unique($languages);
return $languages;
return $languages;
}
@ -73,6 +72,7 @@ function plugin_syntaxhighlighter_foot() {
$pdir=plugin_geturl('syntaxhighlighter');
// javascript part
echo <<<PRISMBOX
<!-- start of prism.js footer -->
@ -84,7 +84,7 @@ echo <<<PRISMBOX
<!-- call wrap_pre_tags() from syntaxhighlighter-ng.js -->
<script type="text/javascript">
var used_languages = {$used_languages};
var used_languages = {$used_plugins};
var used_plugins = {$used_plugins};
wrap_pre_tags(used_languages, used_plugins);
</script>