]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/SyntaxHighlighterPlugin
fix for latest cygwin php
[SourceForge/phpwiki.git] / pgsrc / SyntaxHighlighterPlugin
1 Date: Sun, 4 Jul 2004 01:31:02 -0700
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.11pre)
3 X-Rcs-Id: $Id: SyntaxHighlighterPlugin,v 1.3 2004-07-04 08:44:08 rurban Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=SyntaxHighlighterPlugin;
6   pgsrc_version="2 $Revision: 1.3 $";
7   flags="";
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 The ~SyntaxHighlighter plugin passes all its arguments through a C++
13 highlighter called "highlight" (available at http://www.andre-simon.de/).
14
15 Author: alecthomas
16
17 ! Arguments
18 syntax |
19   (required), See http://www.andre-simon.de/doku/highlight/highlight.html 
20 style |
21   ~[ "ansi", "gnu", "kr", "java", "linux" ~] (required)
22 color |
23   null (optional), see =highlight/themes=
24 number |
25   0  (optional)
26 wrap |
27   0  (optional)
28
29
30 ! Example
31
32 <verbatim>
33 <?plugin SyntaxHighlighter syntax=c style=kr color=emacs
34  #include <stdio.h>
35
36  int main() {
37  printf("Lalala\n");
38  }
39 ?>
40 </verbatim>
41
42 =>
43
44 <?plugin SyntaxHighlighter syntax=c style=kr color=emacs
45  #include <stdio.h>
46
47  int main() {
48  printf("Lalala\n");
49  }
50 ?>
51
52 I did not use beautifier, because it used up more than 8M of memory on
53 my system and PHP killed it. I'm not sure whether this is a problem
54 with my integration, or with beautifier itself.
55
56 Fixes by Reini Urban:
57 * support options: syntax, style, color.
58 * php version switch
59 * HIGHLIGHT_DATA_DIR, HIGHLIGHT_EXE constants
60 ----
61 PhpWikiDocumentation WikiPlugin