Cookbook /
Syntaxlove
Summary: Syntax highlighting with good look and cool JavaScript-effects
Version: 20170226 (0.3.1)
Maintainer: MatthiasGünther
Download: see notes below
Questions answered by this recipe
How can I display highlighted code of several languages on my Wiki?
Description
This recipe gives you the markup for embedding source code in your Wiki with syntax highlighting. Just follow the instruction of the installation and be happy :).
Installation
- download from source
https://bitbucket.org/wikimatze/pmwiki-syntaxlove-recipe/downloads/
or via gitgit clone https://bitbucket.org/wikimatze/pmwiki-syntaxlove-recipe.git
- make the following copy-tasks:
- put
syntaxlove.php
to your cookbook directory (cp pmwiki-syntaxlove-recipe/cookbook/syntaxlove.php cookbook/
) - put
syntaxlove
directory in your public directory (normally *pub/*) (cp -R pmwiki-syntaxlove-recipe/syntaxlove/ pub/
)
- put
- add
include_once("
after including the following in your$FarmD
/cookbook/syntaxlove.php);"config.php
:
$Array_Syntaxlove = array("Bash" => "0", "CSharp" => "0", "Css" => "0", "Delphi" => "0", "Groovy" => "0", "Java" => "1", "JScript" => "0", "Perl" => "1", "Php" => "1", "Plain" => "0", "Python" => "1", "Ruby" => "1", "Scala" => "0", "Sql" => "0", "Vb" => "0", "Xml" => "0");
README
Can be found under README.
See also
- Cookbook /
- Ape Embed videos, maps, documents, and more in wiki pages (Stable)
- Beautifier Perform syntax highlighting for source code displayed on wiki pages
- CodeMirror An enhanced page editor for PmWiki (Stable)
- Gists Markup to allow easy embedding of syntax-highlighted github gists (active)
- PITS The PmWiki Issue Tracking System (Beta)
- PmPygment Display code highlighting using Python pygment (Stable)
- Precode General utility block markup for displaying codes with syntax highlighting (Active/Stable)
- SourceBlock Source code syntax highlighter for PmWiki 2.x using GeSHi (Stable)
- ZCode Extract and highlight source code files from 7z, TAR, ZIP, or RAR archives (Experimental)
Comments/Feedback
See Syntaxlove-Talk - your comments are welcome there!
User notes +2: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.