From: Sabri L. <sab...@st...> - 2007-06-26 08:53:37
|
Reini Urban wrote: >2007/6/25, Sabri LABBENE <sab...@st...>: >> Hi all, >> It seems that the syntax highlighter plugin is disabled or >not installed. >> The following syntax: >> >> <?plugin SyntaxHighlighter syntax=c style=kr color=emacs #include >> <stdio.h> >> >> int main() { >> printf("Lalala\n"); >> } >> ?> >> >> Gives the following errors: >> >> Plugin SyntaxHighlighter failed. sh: line 1: highlight: command not >> found >> >> Plugin SyntaxHighlighter failed. Couldn't start commandline >'highlight --data-dir /usr/share/highlight --style emacs -c >/work1/codex/sabri/codex-3.0/592_wysiwyg_integration/usr/share/ codex/src/www/phpwiki-1.3.12p3/uploads/highlight-emacs.css -F kr -q >-X -f -S c' >> >> I want to have this plugin working. What do I need to do? > >Install highlight? > >Read lib/plugin/SyntaxHighlighter.php for the available >options, where to find the highlight executable. Ok I've got the plugin working and I was surprised that there is no difference between a preformatted text and the plugin result (no colors for langage key words for example even if I change color and style plugin parameters). Another question: What directory 'HIGHLIGHT_DATA_DIR' parameter should point to ? Thanks, -- Sabri. |