Changes between Version 1 and Version 3 of WikiProcessors


Ignore:
Timestamp:
Apr 26, 2009, 4:24:33 AM (9 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v1 v3  
    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----
     
    8385The following processors are included in the Trac distribution:
    8486 * '''html''' -- Insert custom HTML in a wiki page. See WikiHtml.
     87 * '''div''' -- Wrap an arbitrary Wiki content in a <div> element (''since 0.11''). See WikiHtml.
     88 * '''span''' -- Wrap an arbitrary Wiki content in a <span> element (''since 0.11''). See also WikiHtml.
    8589 * '''rst''' -- Trac support for Restructured Text. See WikiRestructuredText.
    86  * '''textile''' -- Supported if  [http://dealmeida.net/projects/textile/ Textile] is installed. See [http://hobix.com/textile/ a Textile reference].
    87 
    88 Textile link above is rotten. [http://www.textism.com/tools/textile/ this one] works, allows to test example.
     90 * '''textile''' -- Supported if [http://cheeseshop.python.org/pypi/textile Textile] is installed. See [http://www.textism.com/tools/textile/ a Textile reference].
     91 * '''comment''' -- Do not process the text in this section (i.e. contents exist only in the plain text - not in the rendered page).
    8992
    9093=== Code Highlighting Support ===
     
    9699 * '''ruby''' -- Ruby
    97100 * '''php''' -- PHP
    98  * '''asp''' --- ASP
     101 * '''asp''' -- ASP
     102 * '''java''' -- Java
     103 * '''js''' -- Javascript
    99104 * '''sql''' -- SQL
    100105 * '''xml''' -- XML
     106 * '''sh''' -- Bourne/Bash shell
     107
    101108'''Note:''' ''Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.''
    102109
     
    109116}}}
    110117
    111 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.
    112125
    113126
    114127For more processor macros developed and/or contributed by users, visit:
    115  * [http://projects.edgewall.com/trac/wiki/ProcessorBazaar ProcessorBazaar]
    116  * [http://projects.edgewall.com/trac/wiki/MacroBazaar MacroBazaar]
     128 * [trac:ProcessorBazaar]
     129 * [trac:MacroBazaar]
     130 * [th:WikiStart Trac Hacks] community site
    117131
    118132
    119133== Advanced Topics: Developing Processor Macros ==
    120 Developing processors is no different from WikiMacros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information.
     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.
    121135
    122 '''Example:''' (''Restructured Text Processor''):
    123 {{{
    124 #!python
    125 from docutils.core import publish_string
    126 
    127 def execute(hdf, text, env):
    128     html = publish_string(text, writer_name = 'html')
    129     return html[html.find('<body>')+6:html.find('</body>')].strip()
    130 }}}
    131136
    132137----