forgot to modify config.php
This commit is contained in:
parent
b0afedf4f2
commit
a205a70ef3
2 changed files with 19 additions and 15 deletions
10
config.php
10
config.php
|
@ -5,19 +5,23 @@
|
||||||
* 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'],
|
||||||
]
|
]
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -40,7 +40,6 @@ function plugin_syntaxhighlighter_add($lang=null) {
|
||||||
$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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue