README
This commit is contained in:
parent
7c8674e976
commit
eaba2b9c02
2 changed files with 10 additions and 2 deletions
10
README.md
10
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 `<!-- start of prism.js header -->` in `fp-plugins/syntaxhighlighter/plugin.syntaxhighlighter.php` and change the following line:
|
||||
|
||||
```
|
||||
|
|
|
@ -49,7 +49,7 @@ function plugin_syntaxhighlighter_foot() {
|
|||
echo <<<PRISMBOX
|
||||
<!-- start of prism.js footer -->
|
||||
|
||||
<script type="text/javascript" src="{$pdir}res/prism.full.js"></script>
|
||||
<script type="text/javascript" src="{$pdir}res/prism.small.js"></script>
|
||||
|
||||
<!-- wrapping the content of pre html-tags into code-tags, as said in https://prismjs.com/index.html#basic-usage -->
|
||||
<script type="text/javascript">
|
||||
|
|
Loading…
Reference in a new issue