Changes between Version 6 and Version 7 of WikiProcessors


Ignore:
Timestamp:
03/18/10 20:29:13 (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v6 v7  
    11= Wiki Processors =
    22
    3 Processors are [TracWikiMacros wiki macros] designed to provide alternative markup formats for the [TracWiki Wiki engine]. Processors can be thought of as ''macro functions to process user-edited text''.
     3Processors 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
    55The Wiki engine uses processors to allow using [wiki:WikiRestructuredText Restructured Text], [wiki:WikiHtml raw HTML] and [http://www.textism.com/tools/textile/ textile] in any Wiki text throughout Trac.
     
    2525<h1 style="color: orange">This is raw HTML</h1>
    2626}}}
     27
     28Note that since 0.11, such blocks of HTML have to be self-contained, i.e. you can't start an HTML element in one block and close it later in a second block. Use div or span processors for achieving similar effect (see WikiHtml).
    2729
    2830----
     
    8284 * '''html''' -- Insert custom HTML in a wiki page. See WikiHtml.
    8385 * '''div''' -- Wrap an arbitrary Wiki content in a <div> element (''since 0.11''). See WikiHtml.
     86 * '''span''' -- Wrap an arbitrary Wiki content in a <span> element (''since 0.11''). See also WikiHtml.
    8487 * '''rst''' -- Trac support for Restructured Text. See WikiRestructuredText.
    8588 * '''textile''' -- Supported if [http://cheeseshop.python.org/pypi/textile Textile] is installed. See [http://www.textism.com/tools/textile/ a Textile reference].
    8689 * '''comment''' -- Do not process the text in this section (i.e. contents exist only in the plain text - not in the rendered page).
     90 * '''diff''' -- Pretty print patches and diffs.
    8791
    8892=== Code Highlighting Support ===
     
    9094 * '''c''' -- C
    9195 * '''cpp''' -- C++
     96 * '''csharp''' --- C# (''use #!text/x-csharp'')
    9297 * '''python''' -- Python
    9398 * '''perl''' -- Perl
    9499 * '''ruby''' -- Ruby
    95100 * '''php''' -- PHP
    96  * '''asp''' --- ASP
     101 * '''asp''' -- ASP
     102 * '''java''' -- Java
     103 * '''js''' -- Javascript
    97104 * '''sql''' -- SQL
    98105 * '''xml''' -- XML
    99106 * '''sh''' -- Bourne/Bash shell
     107
    100108'''Note:''' ''Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.''
    101109
     
    108116}}}
    109117
    110 The result will be syntax highlighted HTML code. The same is valid for all other mime types supported.
     118The result will be syntax highlighted HTML code:
     119{{{
     120#!text/html
     121<h1>text</h1>
     122}}}
     123
     124The same is valid for all other mime types supported.
    111125
    112126
    113127For more processor macros developed and/or contributed by users, visit:
    114  * [http://trac.edgewall.org/wiki/ProcessorBazaar ProcessorBazaar]
    115  * [http://trac.edgewall.org/wiki/MacroBazaar MacroBazaar]
     128 * [trac:ProcessorBazaar]
     129 * [trac:MacroBazaar]
     130 * [th:WikiStart Trac Hacks] community site
    116131
    117132
    118133== Advanced Topics: Developing Processor Macros ==
    119 Developing processors is no different from [TracWikiMacros wiki macros]. In fact they work the same way, only the usage syntax differs.
     134Developing processors is no different from Wiki macros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information.
    120135
    121136
    122137----
    123 See also: TracWikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide
     138See also: WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide