Lines 1 - 6 |
Lines 1 - 9 |
Please feel free to experiment here, after the four dashes below... and please do **NOT** create new pages without any meaningful content just to try it out! |
Please feel free to experiment here, after the four dashes below... and please do **NOT** create new pages without any meaningful content just to try it out! |
|
|
---- |
---- |
|
|
|
It edits, as advertized. -Luke |
|
|
|
|
++ Formatting |
++ Formatting |
|
|
Lines 90 - 115 |
Lines 93 - 118 |
|
|
++ Code Blocks |
++ Code Blocks |
|
|
|
|
// Set up the wiki options |
// Set up the wiki options |
$options = array(); |
$options = array(); |
$options['view_url'] = "index.php?page="; |
$options['view_url'] = "index.php?page="; |
|
|
// load the text for the requested page |
// load the text for the requested page |
$text = implode('', file($page . '.wiki.txt')); |
$text = implode('', file($page . '.wiki.txt')); |
|
|
// create a Wiki objext with the loaded options |
// create a Wiki objext with the loaded options |
$wiki = new Text_Wiki($options); |
$wiki = new Text_Wiki($options); |
|
|
// transform the wiki text. |
// transform the wiki text. |
echo $wiki->transform($text); |
echo $wiki->transform($text); |
|
|
|
|
---- |
---- |
|
|
++ Tables |
++ Tables |
|
|
|| cell one || cell two || |
|| cell one || cell two || |
|||| big ol' line || |
|||| big ol' line || |
|| cell four || cell five || |
|| cell four || cell five || |
|| cell six || here's a very long cell || |
|| cell six || here's a very long cell || |