This is an old revision of the document!
Table of Contents
SyntaxHighlighter-NG
Author: DeltaLima
Description
Makes [code] blocks syntax highlighted (when language specified) with prism.js
By default the full prism.js language support is enabled (prism.full.js ~560kb), see the list of supported languages at prismjs.com
If you want, you can also use the included "prism.small.js" which is much smaller in size (~100kb), but also have less languages supported, but the most important ones are. Have a look into the README.md how to do so.
You find there as well how to change the prism.js theme.
Example
no syntax highlightning
[code]Just plain text e.g.[/code]
PHP code block
[code=php]<?php echo "This is an php example" ?>[/code]
apache config block
[code=apacheconf]<Location /example>
Order Deny,Allow
Deny from all
Allow from .foo.com
</Location>[/code]
Download
syntaxhighlighter-ng_v1.0.1.zip
or get the Latest master from git.la10cy.net but keep in mind you have to create the directory "fp-plugins/syntaxhighlighter/" first by hand and extract the containt to there.
Demo
Support
Please ask for help on the FlatPress Forum



