Edgewall Software

Changes between Initial Version and Version 1 of WikiProcessors


Ignore:
Timestamp:
Mar 21, 2004, 8:05:58 PM (20 years ago)
Author:
daniel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v1 v1  
     1= Wiki Processors =
     2Processors are WikiMacros designed to provide alternative markup formats for the Trac Wiki engine. Processors can be thought of as ''macro functions to process user-edited text''.
     3
     4The wiki engine uses processors to allow using [wiki:WikiRestructuredText Restructured Text] and [wiki:WikiHtml raw HTML] in any wiki text throughout Trac.
     5
     6== Using Processors ==
     7To use a processor on a block of text, use a wiki blockquote, selecting a processor by name using 'hashbang notation' (#!), familiar to most UNIX users from scripts.
     8
     9'''Example 1''' (''inserting raw HTML in a wiki text''):
     10
     11{{{
     12#!html
     13<pre class="wiki">{{{
     14#!html
     15&lt;h1 style="color: orange"&gt;This is raw HTML&lt;/h1&gt;
     16}}}</pre>
     17}}}
     18
     19'''Results in:'''
     20{{{
     21#!html
     22<h1 style="color: orange">This is raw HTML</h1>
     23}}}
     24
     25----
     26
     27'''Example 2''' (''inserting Restructured Text in wiki text''):
     28
     29{{{
     30#!html
     31<pre class="wiki">{{{
     32#!rst
     33A header
     34--------
     35This is some **text** with a footnote [*]_.
     36
     37.. [*] This is the footnote.
     38}}}</pre>
     39}}}
     40
     41'''Results in:'''
     42{{{
     43#!rst
     44A header
     45--------
     46This is some **text** with a footnote [*]_.
     47
     48.. [*] This is the footnote.
     49}}}