Changes between Version 1 and Version 2 of WikiProcessors


Ignore:
Timestamp:
Mar 28, 2008, 2:16:35 PM (17 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v1 v2  
    11= Wiki Processors =
    22
    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''.
     3Processors 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''.
    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.
     
    8181The following processors are included in the Trac distribution:
    8282 * '''html''' -- Insert custom HTML in a wiki page. See WikiHtml.
     83 * '''div''' -- Wrap an arbitrary Wiki content in a <div> element (''since 0.11''). See WikiHtml.
    8384 * '''rst''' -- Trac support for Restructured Text. See WikiRestructuredText.
    84  * '''textile''' -- Supported if  [http://dealmeida.net/projects/textile/ Textile] is installed. See [http://hobix.com/textile/ a Textile reference].
    85 
    86 Textile link above is rotten. [http://www.textism.com/tools/textile/ this one] works, allows to test example.
     85 * '''textile''' -- Supported if [http://cheeseshop.python.org/pypi/textile Textile] is installed. See [http://www.textism.com/tools/textile/ a Textile reference].
     86 * '''comment''' -- Do not process the text in this section (i.e. contents exist only in the plain text - not in the rendered page).
    8787
    8888=== Code Highlighting Support ===
     
    9797 * '''sql''' -- SQL
    9898 * '''xml''' -- XML
     99 * '''sh''' -- Bourne/Bash shell
    99100'''Note:''' ''Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.''
    100101
     
    111112
    112113For more processor macros developed and/or contributed by users, visit:
    113  * [http://projects.edgewall.com/trac/wiki/ProcessorBazaar ProcessorBazaar]
    114  * [http://projects.edgewall.com/trac/wiki/MacroBazaar MacroBazaar]
     114 * [http://trac.edgewall.org/wiki/ProcessorBazaar ProcessorBazaar]
     115 * [http://trac.edgewall.org/wiki/MacroBazaar MacroBazaar]
    115116
    116117
    117118== Advanced Topics: Developing Processor Macros ==
    118 Developing processors is no different from WikiMacros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information.
     119Developing processors is no different from [TracWikiMacros wiki macros]. In fact they work the same way, only the usage syntax differs.
    119120
    120 '''Example:''' (''Restructured Text Processor''):
    121 {{{
    122 #!python
    123 from docutils.core import publish_string
    124 
    125 def execute(hdf, text, env):
    126     html = publish_string(text, writer_name = 'html')
    127     return html[html.find('<body>')+6:html.find('</body>')].strip()
    128 }}}
    129121
    130122----
    131 See also: WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide
     123See also: TracWikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide