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 "small-size" prism.js language support is enabled. This contains following supported languages by default:
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
See prismjs.com#supported-languages for the corresponding "[code=]"-tags and the full list of languages which are supported in the full package, you can configure as well.
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]
Configuration
You can configure the prism.js package size to use (tiny, small, full) and the used theme (coy, dark, default, funky, okaidia, solarizedlight, tomorrow, twilight).
Just edit for that config.php
Download
Demo
Support
Please ask for help on the FlatPress Forum



