From 4b8bfe70ed0c16cb87d0b51fe1c6f52460bdd4c9 Mon Sep 17 00:00:00 2001 From: DeltaLima Date: Thu, 22 Jun 2023 00:27:23 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 63 +++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 38a6902..c68b160 100644 --- a/README.md +++ b/README.md @@ -31,40 +31,39 @@ else fi [/code] ``` +For all language tags see https://prismjs.com/#supported-languages +Not all listed languages are available by default, please see the configuration below! -See the https://prismjs.com/#supported-languages for all supported languages by the contained `prism.full.js` +# configuration -The included `prism.small.js` just has the most popular I know: +You can configure the used size of prismjs and it's theme. For that just edit `config.php` and set your favorite. -``` -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 +The default values are `small` for size (see available languages below) and `okaidia` for the theme. + +```php + 'small', + 'theme' => 'okaidia', + +] +?> ``` -To use it (it is just 100KB instead of >500KB), you have look after -` ` in `syntaxhighlighter/plugin.syntaxhighlighter.php` and change the line - -```html - -``` - -into - -```html - -``` - -To change the theme, take your favorite from https://prismjs.com and place it into `syntaxhighlighter/res/`. -Then look after the block `` in `syntaxhighlighter/plugin.syntaxhighlighter.php` and change the following line: - -```html - -``` - -to - -```html - -```