[cvs] [Wiki] changed: WickedTextFormat

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


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

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

@@ -35,10 +35,8 @@
 || {{``{{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## ||
 
 
 ----
 
@@ -86,9 +84,8 @@
 
 <code>
 [[toc]]
 </code>
-
 ----
 
 ++ Horizontal Rules
 
@@ -165,14 +162,14 @@
 
 You can create a definition (description) list with the following syntax:
 
 <code>
-: Item 1 : Something
-: Item 2 : Something else
+:Item 1: Something
+:Item 2: Something else
 </code>
 
-: Item 1 : Something
-: Item 2 : Something else
+:Item 1: Something
+:Item 2: Something else
 
 ----
 
 ++ Block Quotes
@@ -261,27 +258,27 @@
 [http://pear.php.net PEAR]
 </code>
 [http://pear.php.net PEAR]
 
-+++ On-Page Links
++++ Images
 
-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].
+You can put a picture in a page by typing the URL to the picture \
+(it must end in gif, jpg, or png).
+<code>
+http://c2.com/sig/wiki.gif
+</code>
 
-+++ Images
+http://c2.com/sig/wiki.gif
 
-You can put a picture in a page with {{``[[image foo.jpg]]``}}.  You can use \
-any file type, but most browsers only support GIF, JPEG, and PNG formats. \
-The filename can either be a relative reference (in which case the wiki looks \
-for a file attached to the current page), an absolute reference which begins \
-with a slash (in which case the wiki uses it to retrieve a file relative to \
-the web server's root), or a full, external URL.
+You can use the described-reference URL markup to give the image an ALT tag:
+<code>
+[http://www.netropolisusa.biz/billthemarmet/MT/index/images/sunset_07_10_03.jpg Sunset]
+</code>
 
-Additonal attributes, such as "alt" can follow the image filename or URL like \
-so: {{``[[image foo.jpg alt="A Foo JPEG"]]``}}.  "link" is a special \
-attribute which makes the image a link to the specified URL.
+[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).
 
@@ -289,28 +286,30 @@
 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 {{<code type="php">...</code>}} tags (the tags themselves should each be on their own lines, and no need for the {{<?php ... ?>}} tags).
+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).
 
 <code>
- <code type="php">
- // Set up the wiki options
- $options = array();
- $options['view_url'] = "index.php?page=";
+<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);
- </code>
+// transform the wiki text.
+echo $wiki->transform($text);
+</php>
 </code>
 
-<code type="php">
+<php>
 // Set up the wiki options
 $options = array();
 $options['view_url'] = "index.php?page=";
 
@@ -321,25 +320,23 @@
 $wiki = new Text_Wiki($options);
 
 // transform the wiki text.
 echo $wiki->transform($text);
-</code>
+</php>
 
 ----
 
 ++ 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 ||
@@ -356,5 +353,6 @@
 || 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