Version 34 (modified by guest, 6 years ago)

--

blackjack lipitor zyprexa lawyer cheap levitra pachislo slot machines generic viagra buy online codeine buy diazepam viagra bet on sports buy cheap codeine clomid success buy viagra zyprexa attorney strip blackjack free strip poker strip poker free poker baccarat crystal strip poker baccarat online online poker zoloft side effects rolex casino tramadol cod poker fake rolex casino rolex watches betting hydrocodone casinos viagra hydrocodone no prescription discount didrex poker acyclovir dosage fake rolex buy didrex rolex watches herbal viagra buy levitra online bet uncut videos buy hydrocodone alprazolam online atenolol vicodin addiction online casinos las vegas casinos online casino soma online viagra online casino generic viagra viagra alternative texas holdem strategy free poker buy viagra strip poker clomid side effects internet gambling buy soma sports betting odds poker chips online casino gambling free strip poker casino las vegas casino jobs free poker rolex replicas acyclovir zovirax diazepam effects of zoloft buy online codeine buy online ultram meridia side effects rolex replica viagra alternative acyclovir online betting levitra poker chips online blackjack meridia effectiveness buy viagra bet music betting replica rolex generic levitra online casinos poker rolex watches buy valium online didrex side effects of clomid rolex watches online casinos free poker gambling what does alprazolam look like buy atenolol poker sports betting casino strip poker poker chips generic viagra free poker free poker atenolol and flushing buy alprazolam online buy viagra sports betting buy tramadol texas holdem internet gambling poker viagra free texas holdem casinos antique slot machines casino proctor & gamble online texas holdem generic ambien buy tramadol rolex free strip blackjack buy viagra casino buy valtrex buy viagra rolex replica xanax poker chips poker texas holdem rules rolex online poker rolex replica texas holdem rules rolex hydrocodone no prescription online casino online casino gambling valium online soma online baccarat vase buy xanax online gambling poker atenolol fake rolex clomid success rates online casinos generic levitra hydrocodone no prescription poker viagra alternative online blackjack side effects of zyprexa strip poker texas holdem poker herbal viagra buy online diazepam poker chips valium zyprexa lawyer side effects of zyprexa zyprexa side effects free strip poker cheap viagra buy levitra online texas holdem generic valium buy bontril online casino gambling atenolol side effects atenolol xanax viagra lipitor recall cheap diazepam buy xanax online generic viagra hydrocodone no prescription fake rolex online casinos free strip blackjack casinos generic lipitor side effects from lipitor generic ultram side effects of zyprexa acyclovir zovirax zoloft suicide viagra texas holdem rules zoloft withdrawal rolex watches casino buy viagra online casino roulette tramadol cod strip poker sports betting acyclovir medication zoloft side effects side effects of zoloft online texas holdem valium without prescription free blackjack valium without prescription free strip poker procter & gamble rolex replica zoloft buy ultram online rolex replicas generic lipitor online betting buy online ultram buy soma online poker replica rolex generic viagra rolex replicas zoloft suicide procter & gamble sports betting odds clomid side effects of lipitor poker chips online casinos poker chips rolex watches online gambling online sports gambling online blackjack strip poker acyclovir medication strip poker fake rolex online texas holdem bet sports gambling alprazolam buy cheap codeine online poker

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