Changes between Version 1 and Version 2 of WikiProcessors


Ignore:
Timestamp:
10/22/08 03:31:28 (11 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v1 v2  
    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]. 
     
    9497 * '''ruby''' -- Ruby 
    9598 * '''php''' -- PHP 
    96  * '''asp''' --- ASP 
     99 * '''asp''' -- ASP 
     100 * '''java''' -- Java 
     101 * '''js''' -- Javascript 
    97102 * '''sql''' -- SQL 
    98103 * '''xml''' -- XML 
    99104 * '''sh''' -- Bourne/Bash shell 
     105 
    100106'''Note:''' ''Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.'' 
    101107 
     
    108114}}} 
    109115 
    110 The result will be syntax highlighted HTML code. The same is valid for all other mime types supported. 
     116The result will be syntax highlighted HTML code: 
     117{{{ 
     118#!text/html 
     119<h1>text</h1> 
     120}}} 
     121 
     122The same is valid for all other mime types supported. 
    111123 
    112124 
    113125For 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] 
     126 * [trac:ProcessorBazaar] 
     127 * [trac:MacroBazaar] 
     128 * [th:WikiStart Trac Hacks] community site 
    116129 
    117130 
    118131== 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. 
     132Developing processors is no different from Wiki macros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information. 
    120133 
    121134 
    122135---- 
    123 See also: TracWikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide 
     136See also: WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide