Table of contents
Special PukiWiki feature for this site
Security Policy
For security reason, PukiWiki plugins that anonymous users are able to modify page contents are disabled.
For example, you cannot use #comment or #pcomment plugin for comment input field.
Colorful PHP Source Listing plugin
- #phps plugin without parameter is for whole source listing
#phps{{{ <?php function plugin_phps_convert() { if (func_num_args()) { $args = func_get_args(); $mText = $args[func_num_args()-1]; return "<pre>".highlight_string($mText, true)."</pre>"; } } ?> }}}
will be displayed as follow.
<?php
function plugin_phps_convert()
{
if (func_num_args()) {
$args = func_get_args();
$mText = $args[func_num_args()-1];
return "<pre>".highlight_string($mText, true)."</pre>";
}
}
?>
- #phps plugin with 'part' parameter is for php segment source listing(without <?php)
#phps(part){{{ function plugin_phps_convert() { if (func_num_args()) { $args = func_get_args(); $mText = $args[func_num_args()-1]; return "<pre>".highlight_string($mText, true)."</pre>"; } } }}}
will be displayed as follow.
function plugin_phps_convert()
{
if (func_num_args()) {
$args = func_get_args();
$mText = $args[func_num_args()-1];
return "<pre>".highlight_string($mText, true)."</pre>";
}
}
Page Info | |
---|---|
Page Name : | PukiWiki/SiteFeature |
Page aliases : | None |
Page owner : | onokazu |
Can Read | |
Groups : | All visitors |
Users : | All visitors |
Can Edit | |
Groups : | No one |
Users : | No one |
Counter: 26045,
today: 2,
yesterday: 0
Princeps date: 2006-08-30 (Wed) 00:47:52
Last-modified: 2006-08-30 (Wed) 00:47:52 (JST) (5258d) by onokazu