Detailed view of a page, which is probably more useful for debugging than anything else.
get_pagedata('PhpHighlightPlugin') | |
_cached_html | transformedtext Object ( [_type] => pagetype_wikitext Object ( ) [_basepage] => PhpHighlightPlugin [_content] => Array ( [0] => <div class="wikitext"><p class="tightenable top">The [1] => cached_wikilink Object ( [_page] => PhpHighlightPlugin ) [2] => pretty-prints PHP code using the [3] => cached_interwikilink Object ( [_link] => php-function:highlight-string ) [4] => .</p> <h2>Usage</h2> <p class="tightenable">You specify options for the plugin on the same line as the <tt><?plugin</tt>, and put the code on the following lines, until the final <tt>?></tt>:</p> <pre class="tightenable"> <?plugin PhpHighlight [wrap?] [color options] code to be highlighted ?></pre> <h2>Description</h2> <p class="tightenable">Depending on the <tt>wrap</tt> option, then the plugin will take care of adding <tt><?php</tt> and <tt>?></tt> to the code before passing it to [5] => cached_interwikilink Object ( [_link] => php-function:highlight-string ) [6] => . If the PHP delimiters were added, then the plugin removes them again from the highlighted string, before presenting it.</p> <h2>Options</h2> <dl><dt class="tightenable">Automatic Wrapping</dt> <dd class="tightenable"><p class="tightenable top">If you don't want the plugin to automatically wrap the source code in <tt><?php</tt> and <tt>?></tt>, then set <tt>wrap</tt> to <tt>0</tt>. The default value is <tt>1</tt> which means that the plugin takes care of adding and removing <tt><?php</tt> and <tt>?></tt> automatically.</p> <p class="tightenable bottom">If you set <tt>wrap</tt> to <tt>0</tt>, then you'll be able to mix PHP code with HTML. The plugin will then translate '<tt>< ?php</tt>' into '<tt><?php</tt>' and '<tt>? ></tt>' into '<tt>?></tt>' to allow you to start and stop PHP mode in your code.</p> </dd> <dt class="tightenable">Color Options</dt> <dd class="tightenable"><p class="tightenable top">The plugin accepts optional color arguments which correspond to the highlight settings in <b>php.ini</b>. Specified colors must be a valid hexadecimal color or [7] => cached_externallink Object ( [_url] => http://www.w3.org/TR/REC-html40/types.html#h-6.5 [_label] => HTML 4 color name ) [8] => in lowercase, such as <tt>'#0f0344'</tt> or <tt>blue</tt>. You can set the following options:</p> <p class="tightenable bottom"><tt>string</tt>, <tt>comment</tt>, <tt>keyword</tt>, <tt>bg</tt>, <tt>default</tt>, and <tt>html</tt></p> </dd> </dl> <h2>Examples</h2> <h3>PHP with default colors from <tt>php.ini</tt>:</h3> [9] => cached_plugininvocation Object ( [_pi] => <?plugin PhpHighlight function hello() { echo "Hello World<p>"; } ?> [_tightenable] => 0 ) [10] => <h3>HTML with embedded PHP</h3> <p class="tightenable">Here we have to use <tt>wrap=0</tt> to prevent automatic wrapping, and escape '<tt>?></tt>' as '<tt>? ></tt>':</p> [11] => cached_plugininvocation Object ( [_pi] => <?plugin PhpHighlight wrap=0 html='#000000' bg='#dddddd' <html> <head> <title>PHP Test</title> </head> <body> < ?php echo "<p>Hello World</p>\n"; ? > </body> </html> ?> [_tightenable] => 0 ) [12] => <h3>C Source</h3> <p class="tightenable">Although <tt>highlight_string()</tt> was designed with PHP code in mind it is suitable for basic syntax-highlighting of most C code because the two syntax are similar.</p> [13] => cached_plugininvocation Object ( [_pi] => <?plugin PhpHighlight default=black string=blue comment=gray keyword=purple #include <stdio.h> /* Get load */ int getload(void) { if ((fp = fopen("/proc/loadavg", "r")) == NULL) { syslog(LOG_ERR, _("%s %s: unable to open %s: %s"), _("FATAL ERROR:"), "getload()", "/proc/loadavg", strerror(errno)); exit(EX_OSFILE); } fclose(fp); } ?> [_tightenable] => 0 ) [14] => <h2>Authors</h2> <p class="tightenable">Martin Geisler [15] => cached_externallink Object ( [_url] => mailto:gimpster@gimpster.com ) [16] => and Carsten Klapp [17] => cached_externallink Object ( [_url] => mailto:carstenklapp@users.sourceforge.net ) [18] => .</p> <p class="tightenable"><small> [19] => cached_wikilink Object ( [_page] => P ) [20] => spandex pics leotard pics girls in spandex spandex woman [21] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060706224839/http://www.bfu.bg/site/files/?cla6/pantyhoselycra [_label] => leggings women ) [22] => lycra shirt</p> <p class="tightenable">farm xxx fucking animal zoo porn hardcore farm [23] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060205095516/http://www.network54.com/index/56677 [_label] => zoo ) [24] => porn zoo</p> <p class="tightenable"> [25] => cached_wikilink Object ( [_page] => | ) [26] => </p> <p class="tightenable">old granny older ass older older fat women [27] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060131191421/http://www.network54.com/index/56751 [_label] => mature sluts ) [28] => mature black</p> <p class="tightenable">erotic wife stories love stories erotic adult stories transexual stories [29] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060706000216/http://www.bfu.bg/site/files/?cla6/storiesstories [_label] => poe short stories ) [30] => erotica stories</p> <p class="tightenable"> [31] => cached_wikilink Object ( [_page] => | ) [32] => </p> <p class="tightenable">nylon bushings stocking sex ebony pantyhose stocking tease com [33] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060131191606/http://www.network54.com/index/56761 [_label] => pantyhose porno ) [34] => stockings world</p> <p class="tightenable">sex collant legs in nylons black nylon stockings nylons pictures [35] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060131190140/http://www.network54.com/index/56760 [_label] => feet in nylons ) [36] => nylons and high heels</p> <p class="tightenable">capitol punishment whipping caning dvd classroom discipline [37] => cached_externallink Object ( [_url] => http://web.archive.org/web/20060708160226/http://www.bfu.bg/site/files/?cla6/spankingpunishment [_label] => anal punishment ) [38] => discipline form</p> <p class="tightenable bottom"></small></p> </div> ) [_description] => Depending on the wrap option, then the plugin will take care of adding <?php and ?> to the code before passing it to php-function:highlight-string. If the PHP delimiters were added, then the plugin removes them again from the highlighted string, before presenting it. ) |
hits | 3470 |
get_versiondata('PhpHighlightPlugin',26) | |
%content | The PhpHighlightPlugin pretty-prints PHP ... |
author | WikiWord |
author_id | WikiWord |
is_minor_edit | |
markup | 2 |
mtime | 1186721551 |
pagetype | wikitext |
get_versiondata('PhpHighlightPlugin',25) | |
%content | The PhpHighlightPlugin pretty-prints PHP ... |
_supplanted | 1186721551 |
author | WikiWord |
author_id | WikiWord |
is_minor_edit | |
markup | 2 |
mtime | 1186703191 |
pagetype | wikitext |
get_versiondata('PhpHighlightPlugin',24) | |
%content | The PhpHighlightPlugin pretty-prints PHP ... |
_supplanted | 1186703191 |
author | WikiWord |
author_id | WikiWord |
is_minor_edit | |
markup | 2 |
mtime | 1184337917 |
pagetype | wikitext |
get_versiondata('PhpHighlightPlugin',23) | |
%content | The PhpHighlightPlugin pretty-prints PHP ... |
_supplanted | 1184337917 |
author | WikiWord |
author_id | WikiWord |
is_minor_edit | |
markup | 2 |
mtime | 1184066778 |
pagetype | wikitext |
get_versiondata('PhpHighlightPlugin',22) | |
%content | The PhpHighlightPlugin pretty-prints PHP ... |
_supplanted | 1184066778 |
author | 59.92.45.121 |
author_id | 59.92.45.121 |
is_minor_edit | |
markup | 2 |
mtime | 1183350257 |
pagetype | wikitext |
get_versiondata('PhpHighlightPlugin',19) | |
%content | The PhpHighlightPlugin pretty-prints PHP ... |
_supplanted | 1183066258 |
author | metacosm |
author_id | metacosm |
is_minor_edit | |
mtime | 1102800256 |
pagetype | wikitext |
summary | despammed (ip banned) |