PluginCode doesn't show colors for php code, as it should according to doc page:
http://doc.tikiwiki.org/PluginCode
Tried with param colors=>php or colors=>phpcode:
{CODE(colors=>php)} /** Return system defined temporary directory. * In Unix, this is usually /tmp * In Windows, this is usually c:\windows\temp or c:\winnt\temp * \static */ function tempdir() { static $tempdir; <b>$tempdir = '../tmp';</b> <b>/*</b> if (!$tempdir) { $tempfile = tempnam(false,''); $tempdir = dirname($tempfile); @unlink($tempfile); } <b>*/</b> return $tempdir; } } {CODE}
And it returned:
/** Return system defined temporary directory. * In Unix, this is usually /tmp * In Windows, this is usually c:\windows\temp or c:\winnt\temp * \static */ function tempdir() { static $tempdir; $tempdir = '../tmp'; /* if (!$tempdir) { $tempfile = tempnam(false,''); $tempdir = dirname($tempfile); @unlink($tempfile); } */ return $tempdir; } }
Update: RFE for plugincode:
Why not using "wrap=>1" as default param instead as "wrap=>0"?
From the doc:
Since GeSHI has been licensed under GPL only - which is incompatible with Tikiwiki's LGPL licence - you need to manually download (http://qbnz.com/highlighter) and copy GeSHI in your own tikiwiki's lib/geshi/ directory. You can also install the stable version of GeSHI with the Debian/Ubuntu package "php-geshi".
This would be a great Mods
The URL for the show2.tiki.org instance that demonstrates this bug is at: http://xavi-9794-1284.show2.tiki.org. Note that if you get a popup asking for a username/password, please just enter "show" and "show". This is different from the initial login and password for a new Tiki which is "admin" and "admin".
For the install log, see http://xavi-9794-1284.show2.tiki.org/info.txt
Note that if you see PHP errors or a Tiki claiming to be missing third party software, the instance creation is probably not finished. Please wait a couple minutes and reload.
Snapshots are database dumps of the configuration that developers can download for debugging. Once you have reproduced your bug on the show2.tiki.org instance, create a snapshot that can then be downloaded by developers for further investigation.
Snapshots can be accessed at: http://xavi-9794-1284.show2.tiki.org/snapshots/. Note that if you get a popup asking for a username/password, please just enter "show" and "show".
Create new snapshotfilename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |