Changes between Version 2 and Version 3 of 0.12/WikiProcessors
- Timestamp:
- Jan 27, 2010, 3:17:00 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
0.12/WikiProcessors
v2 v3 3 3 Processors 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''. 4 4 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 5 Wiki processors can be used in any Wiki text throughout Trac, 6 for various different purposes, like: 7 - [#CodeHighlightingSupport syntax highlighting] or for rendering text verbatim, 8 8 - rendering [#HTMLrelated Wiki markup inside a context], 9 like <div> blocks or <span>, or within <td> or <th> table cells9 like inside <div> blocks or <span> or within <td> or <th> table cells, 10 10 - using an alternative markup syntax, like [wiki:WikiHtml raw HTML] and 11 11 [wiki:WikiRestructuredText Restructured Text], … … 42 42 the style parameter, a quoted string can be used (`key="value with space"`). 43 43 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.44 As some processors are meant to process Wiki markup, it's quite possible to 45 ''nest'' processor blocks. 46 You may want to indent the content of nested blocks for increased clarity, 47 this extra indentation will be ignored when processing the content. 48 48 49 49 … … 106 106 }}} 107 107 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 112 108 113 109 == Available Processors == … … 125 121 `#!html` :: Insert custom HTML in a wiki page. 126 122 `#!htmlcomment` :: Insert an HTML comment in a wiki page (''since 0.12''). 123 124 Note that `#!html` blocks have to be ''self-contained'', 125 i.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. 127 126 128 127 `#!div` :: Wrap an arbitrary Wiki content inside a <div> element … … 152 151 `#!c` (C), `#!cpp` (C++), `#!python` (Python), `#!perl` (Perl), 153 152 `#!ruby` (Ruby), `#!php` (PHP), `#!asp` (ASP), `#!java` (Java), 154 `#!js` (Javascript), `#!sql (SQL)`, `#!xml` (XML or highlightedHTML),153 `#!js` (Javascript), `#!sql (SQL)`, `#!xml` (XML or HTML), 155 154 `#!sh` (Bourne/Bash shell), etc. 156 155