The SyntaxHighlighter plugin passes all its arguments through a C++ highlighter called "highlight" (available at http://www.andre-simon.de/).

Author: alecthomas

Arguments

syntax (required), See http://www.andre-simon.de/doku/highlight/highlight.html
style [ "ansi", "gnu", "kr", "java", "linux" ] (required)
color null (optional), see highlight/themes
number 0 (optional)
wrap 0 (optional)

Example

<?plugin SyntaxHighlighter syntax=c style=kr color=emacs
 #include <stdio.h>

 int main() {
 printf("Lalala\n");
 }
?>

=>

Plugin ColorationSyntaxique a échoué. sh: highlight : commande introuvable
Plugin ColorationSyntaxique a échoué. Impossible de lancer la ligne de commande 'highlight --data-dir /usr/share/highlight --style emacs -c /homez.32/autonomie/www/wiki/uploads/highlight-emacs.css -F kr -q -X -f -S c'

I did not use beautifier, because it used up more than 8M of memory on my system and PHP killed it. I'm not sure whether this is a problem with my integration, or with beautifier itself.

Fixes by Reini Urban:


PhpWikiDocumentation Help:WikiPlugin

Valid XHTML 1.0! Valid CSS!
L'exécution de la page a pris real: 0,182, user: 0,120, sys: 0,020 seconds

Fatal Error:

lib/WikiDB/backend/PearDB.php:1059 Error[256]: wikidb_backend_peardb_mysql: fatal database error



Erreur Fatale de PhpWiki

lib/WikiDB/backend/PearDB.php:1059 Error[256]: wikidb_backend_peardb_mysql: fatal database error


Fatal error: wikidb_backend_peardb_mysql: fatal database error DB Error: insufficient permissions (UPDATE session SET sess_data='wiki_user|O:9:\"_anonuser\":5:{s:7:\"_userid\";s:0:\"\";s:6:\"_level\";i:0;s:6:\"_prefs\";O:15:\"userpreferences\":1:{s:6:\"_prefs\";a:14:{s:6:\"userid\";O:15:\"_userpreference\":1:{s:13:\"default_value\";s:0:\"\";}s:6:\"passwd\";O:15:\"_userpreference\":1:{s:13:\"default_value\";s:0:\"\";}s:9:\"autologin\";O:20:\"_userpreference_bool\":1:{s:13:\"default_value\";b:0;}s:5:\"email\";O:21:\"_userpreference_email\":1:{s:13:\"default_value\";s:0:\"\";}s:11:\"notifyPages\";O:22:\"_userpreference_notify\":1:{s:13:\"default_value\";s:0:\"\";}s:5:\"theme\";O:21:\"_userpreference_theme\":1:{s:13:\"default_value\";s:7:\"smaller\";}s:4:\"lang\";O:24:\"_userpreference_language\":1:{s:13:\"default_value\";s:2:\"fr\";}s:9:\"editWidth\";O:19:\"_userpreference_int\":3:{s:13:\"default_value\";d:80;s:7:\"_minval\";d:30;s:7:\"_maxval\";d:150;}s:11:\"noLinkIcons\";O:20:\"_userpreference_bool\":1:{s:13:\"default_va in /homez.32/autonomie/www/wiki/lib/WikiDB/backend/PearDB.php on line 1059