]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FSyntaxHighlighterPlugin
function _PageList_Column* are not private
[SourceForge/phpwiki.git] / pgsrc / Help%2FSyntaxHighlighterPlugin
1 Date: Fri,  7 Dec 2012 14:58:45 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FSyntaxHighlighterPlugin;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   markup=2;
7   charset=UTF-8
8 Content-Transfer-Encoding: binary
9
10 The **~SyntaxHighlighter** [[Help:WikiPlugin|plugin]] passes all its arguments through a C++
11 highlighter called "highlight" (available at [[http://www.andre-simon.de]]).
12
13 == Arguments ==
14
15 {| class="bordered"
16 |-
17 ! Argument
18 ! Description
19 ! Default value
20 |-
21 | **syntax**
22 |
23 | //None// (required argument), see http://www.andre-simon.de/doku/highlight/highlight.html
24 |-
25 | **style**
26 |
27 | ~[ "ansi", "gnu", "kr", "java", "linux" ~] (required)
28 |-
29 | **color**
30 |
31 | null (optional), see ##highlight/themes##
32 |-
33 | **number**
34 |
35 | 0  (optional)
36 |-
37 | **wrap**
38 |
39 | 0  (optional)
40 |}
41
42 == Example ==
43
44 {{{
45 <<SyntaxHighlighter syntax=c style=kr color=bright
46  #include <stdio.h>
47
48  int main() {
49  printf("Lalala\n");
50  }
51 >>
52 }}}
53
54 will give:
55
56 <<SyntaxHighlighter syntax=c style=kr color=bright
57  #include <stdio.h>
58
59  int main() {
60  printf("Lalala\n");
61  }
62 >>
63
64 I did not use beautifier, because it used up more than 8M of memory on
65 my system and PHP killed it. I'm not sure whether this is a problem
66 with my integration, or with beautifier itself.
67
68 == Authors ==
69
70 * alecthomas
71 * Fixes by [[Help:Reini Urban|Reini Urban]]:
72 ** support options: syntax, style, color,
73 ** php version switch,
74 ** HIGHLIGHT_DATA_DIR, HIGHLIGHT_EXE constants,
75
76 <noinclude>
77 ----
78 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
79 </noinclude>