Wednesday, June 22, 2005

Willi’s “TWiki” Style

Willi’s “TWiki” style When analyzing character text (e.g. readme.txt, license.txt, register.txt) this will guide you to the following “TWiki” style for writing structured text that is readable as text and as transformed XHTML page. *** Header <h1>Header</h1> valid only if at the beginning of a line ** Header <h2>Header</h2> valid only if at the beginning of a line * Header <h3>Header</h3> valid only if at the beginning of a line Header: <h4>Header</h4> Valid only if the ‘:’ is the last character in this line and the Text starts at the beginning of the line. *** Header: alternative representation of an Header 1 ** Header: alternative representation of an Header 2 * Header: alternative representation of an Header 3
Header
******
alternative representation of an Header 1 Valid, only if the line follows directly at the beginning of the next line
Header
======
alternative representation of an Header 2 Valid, only if the line follows directly at the beginning of the next line
Header
------
alternative representation of an Header 3 Valid, only if the line follows directly at the beginning of the next line - a - b - c <ul> <li>a</li> <li>b</li> <li>c</li> </ul> bullet item + a + b + c <ol> <li>a</li> <li>b</li> <li>c</li> </ol> list items summing up 1) a 2) b 3) c Alternative representation of an ordered list Only valid if the line starts with the ‘1)’ signiture 1. a 2. b 3. c Alternative representation of an ordered list Only valid if the line starts with the ‘1.’ Signiture. Also possible ‘1.1.2’, etc. A. a B. b C. c Alternative representation of an ordered list Only valid if the line starts with the ‘A.’ signiture chr(10), chr(13) <br/> * * * <hr/> Only valid if it starts at the beginning of the line. Use three or more lines ***** Alternative representation of a horizontal line = = = <hr/> Only valid if it starts at the beginning of the line. Use three or more lines ===== Alternative representation of a horizontal line - - - <hr/> Only valid if it starts at the beginning of the line. Use three or more lines ----- Alternative representation of a horizontal line
 *L*  *C*    *R* 
  A2   2      2  
<table> <tr><td>L</td><td>C</td><td>R</td></tr> <tr><td>A2</td><td>2</td><td>2</td></tr> </table>
---------------------
 *L*  *C*    *R* 
---------------------
  A2   2      2  
---------------------
alternative representation of a table
---------------------
| *L* | *C*  |  *R* |
---------------------
|  A2 |  2   |   2  |
---------------------
alternative representation of a table