wiki:WikiProcessors

Version 23 (modified by baker1, 7 years ago) (diff)

--

buy online fioricet herbal viagra viagra soma online cheap cialis buy fioricet buy soma cheap cheap cialis tramadol buy fioricet buy fioricet online soma online generic viagra viagra alternative buy viagra cheap soma cheap viagra online pharmacy tramadol generic ultram tramadol online cheap cialis buy tramadol canada discount celexa butalbital online tramadol cod tramadol cheap viagra cheap fioricet celexa & discontinuation symptoms buy soma cheap viagra soma online celexa & discontinuation symptoms buy viagra side effects of zoloft generic cialis cheap cialis butalbital buying zoloft suicide herbal viagra buy viagra buy viagra buy levitra online celexa side effects of zoloft buy soma generic viagra butalbital zoloft suicide buy cialis zoloft side effects cheap levitra tramadol canada discount celexa butalbital prescription side effects of zoloft herbal viagra soma zoloft carisoprodol buy online butalbital generic viagra buy cheap celexa buy fioricet cialis cheap soma viagra alternative cheap levitra soma online buy viagra levitra cheap cialis celexa & discontinuation symptoms soma online levitra alternative cialis online drug fioricet butalbital cheap butalbital buying drug fioricet buy viagra generic viagra tramadol cod levitra viagra alternative herbal viagra buy cialis levitra generic viagra viagra alternative buy tramadol buy soma cheap butalbital prescription zoloft generic cialis buy tramadol cialis buy cialis cheap viagra generic viagra tramadol cod buy ultram online buy viagra generic ultram butalbital buy online generic viagra buy cheap fioricet cheap cialis cialis online effects of zoloft buy ultram buy carisoprodol levitra alternative zoloft suicide soma order cialis carisoprodol buying zoloft suicide online pharmacy tramadol zoloft withdrawal cheap soma buy online carisoprodol viagra alternative online pharmacy tramadol effects of zoloft cheap soma cheap viagra zoloft suicide butalbital buying online pharmacy tramadol buy ultram online zoloft buy viagra buy tramadol generic viagra effects of zoloft levitra butalbital buy online zoloft suicide viagra cheap viagra cheap tramadol generic levitra cheap cialis order cialis buy cheap celexa zoloft withdrawal zoloft suicide order cialis butalbital buying buy celexa herbal viagra buy soma online carisoprodol buy online celexa butalbital cheap cheap tramadol buy viagra generic viagra butalbital zoloft effects of zoloft side effects of zoloft cheap viagra celexa & discontinuation symptoms zoloft withdrawal butalbital buy online cheap soma levitra alternative buy online celexa generic viagra soma online cialis buy celexa viagra alternative buy viagra viagra alternative soma buy cheap carisoprodol soma online buy online ultram buy online ultram cialis cheap viagra viagra levitra alternative herbal viagra herbal viagra viagra buy fioricet online online pharmacy tramadol buy levitra cheap viagra zoloft withdrawal cheap ultram cheap viagra herbal viagra cheap soma viagra viagra alternative soma herbal viagra buy cheap carisoprodol viagra buy online celexa buy online celexa cheap viagra viagra alternative soma generic viagra levitra alternative herbal viagra cheap cialis cheap soma buy levitra online cheap viagra generic viagra tramadol online buy online carisoprodol soma online buy soma buy online fioricet buy fioricet online pharmacy tramadol buy ultram online herbal viagra zoloft suicide viagra alternative soma butalbital prescription effects of zoloft generic levitra cheap fioricet cheap viagra carisoprodol tramadol generic viagra viagra buy levitra buy levitra buy viagra zoloft suicide viagra viagra viagra alternative cialis online zoloft suicide viagra alternative zoloft withdrawal butalbital prescription buy soma buy viagra generic cialis cheap levitra zoloft celexa drug fioricet generic cialis butalbital viagra side effects of zoloft cheap ultram buy viagra cheap soma buy cheap fioricet generic cialis buy viagra cheap fioricet generic viagra cialis effects of zoloft buy fioricet soma online zoloft suicide buy online carisoprodol buy viagra tramadol generic cialis cheap viagra herbal viagra viagra effects of zoloft zoloft suicide buy ultram online generic viagra celexa buy viagra carisoprodol online pharmacy tramadol tramadol online cheap viagra buy viagra buy cheap celexa viagra alternative order cialis viagra alternative cheap viagra generic viagra cheap levitra zoloft suicide

Wiki Processors

Processors are WikiMacros designed to provide alternative markup formats for the Trac Wiki engine. Processors can be thought of as macro functions to process user-edited text.

The wiki engine uses processors to allow using Restructured Text and raw HTML in any wiki text throughout Trac.

Using Processors

To use a processor on a block of text, use a wiki blockquote, selecting a processor by name using shebang notation (#!), familiar to most UNIX users from scripts.

Example 1 (inserting raw HTML in a wiki text):

{{{
#!html
<h1 style="color: orange">This is raw HTML</h1>
}}}

Results in:

This is raw HTML


Example 2 (inserting Restructured Text in wiki text):

{{{
#!rst
A header
--------
This is some **text** with a footnote [*]_.

.. [*] This is the footnote.
}}}

Results in:

A header

This is some text with a footnote [*].

[*]This is the footnote.

Example 3 (inserting a block of C source code in wiki text):

{{{
#!c
int main(int argc, char *argv[])
{
  printf("Hello World\n");
  return 0;
}
}}}

Results in:

int main(int argc, char *argv[])
{
  printf("Hello World\n");
  return 0;
}

Available Processors

The following processors are included in the Trac distribution:

Code Highlighting Support

Trac includes processors to provide inline syntax highlighting for the following languages:

  • c -- C
  • cpp -- C++
  • python -- Python
  • perl -- Perl
  • ruby -- Ruby
  • php -- PHP
  • asp --- ASP
  • sql -- SQL
  • xml -- XML

Note: Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.

By using the MIME type as processor, it is possible to syntax-highlight the same languages that are supported when browsing source code. For example, you can write:

{{{
#!text/html
<h1>text</h1>
}}}

The result will be syntax highlighted HTML code. The same is valid for all other mime types supported.

For more processor macros developed and/or contributed by users, visit:

Advanced Topics: Developing Processor Macros

Developing processors is no different than WikiMacros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information.

Example: (Restructured Text Processor):

from docutils.core import publish_string

def execute(hdf, text, env):
    html = publish_string(text, writer_name = 'html')
    return html[html.find('<body>')+6:html.find('</body>')].strip()

See also: WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide