[cvs] [Wiki] changed: WickedTextFormat

Wiki Guest wiki at wiki.horde.org
Tue Nov 22 04:05:22 PST 2005


guest [64.124.122.228]  Tue, 22 Nov 2005 04:05:22 -0800

Modified page: http://wiki.horde.org/WickedTextFormat
New Revision:  1.8
Change log:  Revert

@@ -35,8 +35,10 @@
 || {{``{{teletype text}}``}}                    || {{teletype text}} ||
 || {{``@@--- delete text +++ insert text @@``}} || @@--- delete text +++ insert text @@ ||
 || {{``@@--- delete only @@``}}                 || @@--- delete only @@ ||
 || {{``@@+++ insert only @@``}}                 || @@+++ insert only @@ ||
+|| {{``##red|red text## ``}} || ##red|red text## ||
+|| {{``##FFFF00|yellow text##``}} || ##FFFF00|yellow text## ||
 
 
 ----
 
@@ -84,8 +86,9 @@
 
 <code>
 [[toc]]
 </code>
+
 ----
 
 ++ Horizontal Rules
 
@@ -257,8 +260,12 @@
 <code>
 [http://pear.php.net PEAR]
 </code>
 [http://pear.php.net PEAR]
+
++++ On-Page Links
+
+Create and anchor on the page by {{``[[# anchorName nice anchor text]]``}} [[# anchorName nice anchor text]] and refer to it by {{``#anchorName``}} #anchorName, or {{``[#anchorName use normal link renaming]``}} [#anchorName use normal link renaming].
 
 +++ Images
 
 You can put a picture in a page by typing the URL to the picture \
@@ -277,8 +284,9 @@
 [http://www.netropolisusa.biz/billthemarmet/MT/index/images/sunset_07_10_03.jpg Sunset]
 
 
 ----
+
 ++ Code Blocks
 
 Create code blocks by using {{<code>...</code>}} tags (each on its own line).
 
@@ -286,30 +294,28 @@
 This is an example code block!
 </code>
 
 
-To create PHP blocks that get automatically colorized when you use PHP tags, \
-simply surround the code with {{<php>...</php>}} tags (the tags themselves \
-should each be on their own lines, and no need for the {{&lt;?php ... ?&gt;}} tags).
+To create PHP blocks that get automatically colorized when you use PHP tags, simply surround the code with {{<code type="php">...</code>}} tags (the tags themselves should each be on their own lines, and no need for the {{<?php ... ?>}} tags).
 
 <code>
-<php>
-// Set up the wiki options
-$options = array();
-$options['view_url'] = "index.php?page=";
+ <code type="php">
+ // Set up the wiki options
+ $options = array();
+ $options['view_url'] = "index.php?page=";
 
-// load the text for the requested page
-$text = implode('', file($page . '.wiki.txt'));
+ // load the text for the requested page
+ $text = implode('', file($page . '.wiki.txt'));
 
-// create a Wiki objext with the loaded options
-$wiki = new Text_Wiki($options);
+ // create a Wiki objext with the loaded options
+ $wiki = new Text_Wiki($options);
 
-// transform the wiki text.
-echo $wiki->transform($text);
-</php>
+ // transform the wiki text.
+ echo $wiki->transform($text);
+ </code>
 </code>
 
-<php>
+<code type="php">
 // Set up the wiki options
 $options = array();
 $options['view_url'] = "index.php?page=";
 
@@ -320,23 +326,25 @@
 $wiki = new Text_Wiki($options);
 
 // transform the wiki text.
 echo $wiki->transform($text);
-</php>
+</code>
 
 ----
 
 ++ Tables
 
 You can create tables using pairs of vertical bars:
 
 <code>
+||~ Heading one ||~ Heading two ||
 || cell one || cell two ||
 |||| big ol' line ||
 || cell four || cell five ||
 || cell six || here's a very long cell ||
 </code>
 
+||~ Heading one ||~ Heading two ||
 || cell one || cell two ||
 |||| big ol' line ||
 || cell four || cell five ||
 || cell six || here's a very long cell ||
@@ -353,6 +361,5 @@
 || cells are separated by || double vertical bars || nothing ||
 |||| you can span multiple columns by || starting each cell ||
 || with extra cell |||| separators ||
 |||||| but perhaps an example is the easiest way to see ||
-
 


More information about the cvs mailing list