From eaba2b9c02d049ba9d534bf193fc0fd2e95fd66c Mon Sep 17 00:00:00 2001 From: DeltaLima Date: Wed, 21 Jun 2023 01:17:12 +0200 Subject: [PATCH] README --- README.md | 10 +++++++++- plugin.syntaxhighlighter.php | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 770b2bf..5fd21ac 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,14 @@ When you just create an `[code][/code]` block, then there will be no syntax high To enable it, you have to specify the language you want to get highlighted, for example: ``` +[code=bash] +if [ "$1" == "bash" ] +then + echo "Yeah :)" +else + echo "something else" +fi +[/code] ``` See the https://prismjs.com/#supported-languages for all supported languages by the contained `prism.full.js` @@ -19,7 +27,7 @@ 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 ``` -To change the theme, your favorite from https://prismjs.com and place it into `fp-plugins/syntaxhighlighter/res/`. +To change the theme, choose your favorite from https://prismjs.com and place it into `fp-plugins/syntaxhighlighter/res/`. Then look after the block `` in `fp-plugins/syntaxhighlighter/plugin.syntaxhighlighter.php` and change the following line: ``` diff --git a/plugin.syntaxhighlighter.php b/plugin.syntaxhighlighter.php index 9898a63..8ec3106 100644 --- a/plugin.syntaxhighlighter.php +++ b/plugin.syntaxhighlighter.php @@ -49,7 +49,7 @@ function plugin_syntaxhighlighter_foot() { echo << - +