Edgewall Software

Changes between Version 2 and Version 3 of 0.12/WikiProcessors


Ignore:
Timestamp:
Jan 27, 2010, 3:17:00 PM (14 years ago)
Author:
Christian Boos
Comment:

minor fixes after review

Legend:

Unmodified
Added
Removed
Modified
  • 0.12/WikiProcessors

    v2 v3  
    33Processors are WikiMacros designed to provide alternative markup formats for the [TracWiki Wiki engine]. Processors can be thought of as ''macro functions to process user-edited text''.
    44
    5 The Wiki engine uses processors for various different purposes,
    6 and can be used in any Wiki text throughout Trac, for:
    7  - [#CodeHighlightingSupport syntax highlighting] or for rendering text verbatim
     5Wiki processors can be used in any Wiki text throughout Trac,
     6for various different purposes, like:
     7 - [#CodeHighlightingSupport syntax highlighting] or for rendering text verbatim,
    88 - rendering [#HTMLrelated Wiki markup inside a context],
    9    like <div> blocks or <span>, or within <td> or <th> table cells
     9   like inside <div> blocks or <span> or within <td> or <th> table cells,
    1010 - using an alternative markup syntax, like [wiki:WikiHtml raw HTML] and
    1111   [wiki:WikiRestructuredText Restructured Text],
     
    4242the style parameter, a quoted string can be used (`key="value with space"`).
    4343
    44 Note that some processors are meant to process Wiki markup,
    45 so in this case it's quite possible to ''nest'' processor blocks.
    46 You may indent the content of nested blocks for increased clarity,
    47 this extra indentation will be ignore when processing the content.
     44As some processors are meant to process Wiki markup, it's quite possible to
     45''nest'' processor blocks.
     46You may want to indent the content of nested blocks for increased clarity,
     47this extra indentation will be ignored when processing the content.
    4848
    4949
     
    106106}}}
    107107
    108 Note already at this point that HTML blocks have to be self-contained,
    109 i.e. you can't start an HTML element in one block and close it later in a second block. Use [#element element] processors for achieving a similar effect.
    110 More details on this in WikiHtml.
    111 
    112108
    113109== Available Processors ==
     
    125121 `#!html`        :: Insert custom HTML in a wiki page.
    126122 `#!htmlcomment` :: Insert an HTML comment in a wiki page (''since 0.12'').
     123
     124Note that `#!html` blocks have to be ''self-contained'',
     125i.e. you can't start an HTML element in one block and close it later in a second block. Use the following processors for achieving a similar effect.
    127126
    128127  `#!div` :: Wrap an arbitrary Wiki content inside a <div> element
     
    152151 `#!c` (C), `#!cpp` (C++), `#!python` (Python), `#!perl` (Perl),
    153152 `#!ruby` (Ruby), `#!php` (PHP), `#!asp` (ASP), `#!java` (Java),
    154  `#!js` (Javascript), `#!sql (SQL)`, `#!xml` (XML or highlighted HTML),
     153 `#!js` (Javascript), `#!sql (SQL)`, `#!xml` (XML or HTML),
    155154 `#!sh` (Bourne/Bash shell), etc.
    156155