From: <var...@us...> - 2012-11-28 09:46:54
|
Revision: 8563 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8563&view=rev Author: vargenau Date: 2012-11-28 09:46:48 +0000 (Wed, 28 Nov 2012) Log Message: ----------- Remove what has been put in Help page Modified Paths: -------------- trunk/lib/plugin/SyntaxHighlighter.php Modified: trunk/lib/plugin/SyntaxHighlighter.php =================================================================== --- trunk/lib/plugin/SyntaxHighlighter.php 2012-11-27 17:16:31 UTC (rev 8562) +++ trunk/lib/plugin/SyntaxHighlighter.php 2012-11-28 09:46:48 UTC (rev 8563) @@ -25,32 +25,9 @@ * highlighter called "highlight" (available at http://www.andre-simon.de/). * * @author: alecthomas - * - * syntax: See http://www.andre-simon.de/doku/highlight/highlight.html - * style = ["ansi", "gnu", "kr", "java", "linux"] - -<<SyntaxHighlighter syntax=c style=kr color=emacs -#include <stdio.h> - -int main() { -printf("Lalala\n"); -} ->> - -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: -support options: syntax, style, color. -php version switch -HIGHLIGHT_DATA_DIR, HIGHLIGHT_EXE */ if (!defined('HIGHLIGHT_EXE')) define('HIGHLIGHT_EXE', 'highlight'); -//define('HIGHLIGHT_EXE','/usr/local/bin/highlight'); -//define('HIGHLIGHT_EXE','/home/groups/p/ph/phpwiki/bin/highlight'); - // highlight requires two subdirs themes and langDefs somewhere. // Best by highlight.conf in $HOME, but the webserver user usually // doesn't have a $HOME @@ -59,7 +36,6 @@ define('HIGHLIGHT_DATA_DIR', 'f:\cygnus\usr\local\share\highlight'); else define('HIGHLIGHT_DATA_DIR', '/usr/share/highlight'); -//define('HIGHLIGHT_DATA_DIR','/home/groups/p/ph/phpwiki/share/highlight'); class WikiPlugin_SyntaxHighlighter extends WikiPlugin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |