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 - -```