Re: Syntax Highlighter plugin usage

Sabri LABBENE <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
Reini Urban wrote:
>2007/6/25, Sabri LABBENE <[email protected]>:
>> 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.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.