Table of Contents
Compatible with DokuWiki
2009-02-14, Lemming, Anteater, Rincewind, Angua
Download and Installation
Syntax and Usage
jQuery.Syntax is an extremely fast and lightweight syntax highlighter. It has dynamic loading of syntax source files and integrates cleanly using CSS or modelines.
Please see the main project page (via web.archive.org) for examples, compatibility, and free cake!
<file> tags, as per most other
code style plugins.
<code php-script> php script goes here </code>
if you replace
toolbar.append('<a href="http://codepad.org" target="oriontransfer">!</a>');toolbar.append('<a href="http://www.oriontransfer.co.nz/software/jquery-syntax" target="oriontransfer">?</a>')
you can provide a link to an online-Interpreter
Fixing the Media Manager / Image Insertion
As at 2012-07-26, the latest version (2012-06-01) of jquery syntax highlighting plugin messes with the jQuery that comes with DokuWiki 2012-01-25 “Angua”, and this prevents image insertion via the Media Manager to work. Since I couldn't find an issue tracker associated with this plugin, I'll stick the bug report and its fix here.
Steps to Reproduce
- Edit a page
- Click the picture icon to insert an image
- Click on an image in the window which opens
Observed: Nothing visible to use happens, error appears in console
Expected: Popup dialog appears which allows user to set link target, alignment and size of image
Analysis: Looks like jQuery from DokuWiki gets clobbered by the jQuery which jquery-syntax adds. The variable $updateVersion is not passed to the popup Media Manager window.
Fix: Prevent jquery-syntax in the Media Manager window from loading its own version of jQuery: in
if (empty($updateVersion)) return false;
After doing this, the image insertion works as expected and syntax highlighting still works. Tested using DokuWiki 2013-05-10a “Weatherwax”.