README.md update

This commit is contained in:
DeltaLima 2023-06-21 01:23:19 +02:00
parent eaba2b9c02
commit f2a43499b5
2 changed files with 7 additions and 4 deletions

View file

@ -24,10 +24,13 @@ See the https://prismjs.com/#supported-languages for all supported languages by
The included `prism.small.js` just has the most popular I know: The included `prism.small.js` just has the most popular I know:
``` ```
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 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
``` ```
To change the theme, choose your favorite from https://prismjs.com and place it into `fp-plugins/syntaxhighlighter/res/`. To change the theme, your favorite from https://prismjs.com and place it into `fp-plugins/syntaxhighlighter/res/`.
Then look after the block `<!-- start of prism.js header -->` in `fp-plugins/syntaxhighlighter/plugin.syntaxhighlighter.php` and change the following line: Then look after the block `<!-- start of prism.js header -->` in `fp-plugins/syntaxhighlighter/plugin.syntaxhighlighter.php` and change the following line:
``` ```

View file

@ -49,7 +49,7 @@ function plugin_syntaxhighlighter_foot() {
echo <<<PRISMBOX echo <<<PRISMBOX
<!-- start of prism.js footer --> <!-- start of prism.js footer -->
<script type="text/javascript" src="{$pdir}res/prism.small.js"></script> <script type="text/javascript" src="{$pdir}res/prism.full.js"></script>
<!-- wrapping the content of pre html-tags into code-tags, as said in https://prismjs.com/index.html#basic-usage --> <!-- wrapping the content of pre html-tags into code-tags, as said in https://prismjs.com/index.html#basic-usage -->
<script type="text/javascript"> <script type="text/javascript">
@ -82,7 +82,7 @@ function plugin_syntaxhighlighter_foot() {
for (let iEl = 0;iEl < preElements.length; iEl++) for (let iEl = 0;iEl < preElements.length; iEl++)
{ {
org_html = preElements[iEl].innerHTML; org_html = preElements[iEl].innerHTML;
new_html = "<code class=\"language-" + used_languages[iUl] + "\">" + org_html + "</code>"; new_html = "<code class=\"line-numbers language-" + used_languages[iUl] + "\">" + org_html + "</code>";
preElements[iEl].innerHTML = new_html; preElements[iEl].innerHTML = new_html;
} }