Changes between Version 1 and Version 2 of WikiFormatting


Ignore:
Timestamp:
11/17/04 15:27:56 (20 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiFormatting

    v1 v2  
    6161 1. Item 2
    6262
     63== Preformatted text ==
     64Block quotes, also know as preformatted text, is suitable for source code snippets, notes and examples. Use three ''curly braces'' wrapped around the text:
     65 
     66{{{
     67 {{{
     68  def HelloWorld()
     69      print "Hello World"
     70 }}}
     71}}}
     72
     73Display:
     74{{{
     75 def HelloWorld()
     76     print "Hello World"
     77}}}
     78
     79== Tables ==
     80
     81Simple tables can be created like this:
     82{{{
     83||Cell 1||Cell 2||Cell 3||
     84||Cell 4||Cell 5||Cell 6||
     85}}}
     86Display:
     87||Cell 1||Cell 2||Cell 3||
     88||Cell 4||Cell 5||Cell 6||
     89
    6390== Links ==
    6491
    65 Hyperlinks are automatically created for WikiPageNames and urls.
     92Hyperlinks are automatically created for WikiPageNames and urls. !WikiPageLinks can be disabled by
     93prepending a bang (!) character like this {{{!WikiPageLink}}}.
    6694
    6795For example:
     
    6997 TitleIndex, http://www.edgewall.com/.
    7098
    71 Links can be given a move descriptive title by writing the link followed by
     99Links can be given a more descriptive title by writing the link followed by
    72100a space and a title and all this inside two square brackets. Like this:
    73101{{{
    74  * [http://www.edgewall.com/ Edgewall Research & Development]
     102 * [http://www.edgewall.com/ Edgewall Software]
    75103 * [wiki:TitleIndex Title Index]
    76104}}}
    77105Display:
    78106
    79  * [http://www.edgewall.com/ Edgewall Research & Development]
     107 * [http://www.edgewall.com/ Edgewall Software]
    80108 * [wiki:TitleIndex Title Index]
    81109
     
    89117 * Report {1}
    90118 * Changeset [1]
    91  * File svn:trunk/COPYING.
     119 * File source:trunk/COPYING.
     120 * A specific file revision: source:/trunk/COPYING#200
    92121}}}
    93122Display:
     
    95124 * Report {1}
    96125 * Changeset [1]
    97  * File svn:trunk/COPYING.
     126 * File source:trunk/COPYING.
     127 * A specific file revision: source:/trunk/COPYING#200
     128
     129See TracLinks for more information about intra-trac linking.
    98130
    99131== Images ==
     
    109141http://www.edgewall.com/gfx/trac_example_image.png
    110142
    111 
    112 == Other stuff ==
     143== Macros ==
     144Macros are ''custom functions'' to insert dynamic content in a page. See WikiMacros for usage.
     145
     146Example:
     147{{{
     148 [[Timestamp]]
     149}}}
     150Display:
     151 [[Timestamp]]
     152
     153== Processors ==
     154Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in [wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML]. See WikiProcessors for documentation.
     155
     156'''Example 1:'''
     157{{{
     158#!html
     159<pre class="wiki">{{{
     160#!html
     161&lt;h1 style="text-align: right; color: blue"&gt;HTML Test&lt;/h1&gt;
     162}}}</pre>
     163}}}
     164Display:
     165{{{
     166#!html
     167<h1 style="text-align: right; color: blue">HTML Test</h1>
     168}}}
     169
     170'''Example 2:'''
     171{{{
     172#!html
     173<pre class="wiki">{{{
     174#!python
     175class Test:
     176    def __init__(self):
     177        print "Hello World"
     178if __name__ == '__main__':
     179   Test()
     180}}}</pre>
     181}}}
     182Display:
     183{{{
     184#!python
     185class Test:
     186    def __init__(self):
     187        print "Hello World"
     188if __name__ == '__main__':
     189   Test()
     190}}}
     191== Miscellaneous ==
    113192
    114193Four or more dashes will be replaced by a horizontal line (<HR>)
    115194
     195{{{
     196 ----
     197}}}
     198
     199Display:
    116200----
     201
     202
     203----
     204See also: TracLinks, TracGuide, WikiMacros, WikiProcessors, TracSyntaxColoring.