diff --git a/config.php b/config.php index 0d17d4b..9d771be 100644 --- a/config.php +++ b/config.php @@ -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'], ] ?> diff --git a/plugin.syntaxhighlighter.php b/plugin.syntaxhighlighter.php index aa788f7..ecf7a2a 100644 --- a/plugin.syntaxhighlighter.php +++ b/plugin.syntaxhighlighter.php @@ -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 << @@ -84,7 +84,7 @@ echo <<