Version 29 (modified by guest, 6 years ago)

--

health solutions ultram hydrocodone no prescription viagra viagra buy online celexa las vegas casino didrex cheap online casino order cialis celexa anxiety cialis online alprazolam pictures discount valtrex replica rolex watches buy online fioricet rolex watch rolex replica fioricet buy fioricet buy xanax getting alprazolam without a prescription zyprexa side effects buy soma cheap buy alprazolam lipitor recall online roulette rolex watch zyprexa diabetes alprazolam texas holdem strategy clomid strip poker viagra alternative free strip blackjack bet free strip poker poker rolex ambien side effects side effects of lipitor buy vicodin online cheap viagra poker xanax effect order hydrocodone phentermine alprazolam online online casinos phentermine on line gambling free poker clomid success acyclovir how to take casino games bet music buy online celexa meridia side effects online football betting rolex replicas cheap viagra sports betting cheap phentermine buy ambien meridia fake rolex phentermine buy meridia viagra alternative viagra alternative aura soma casino games celexa order cialis generic propecia ambien online propecia hair treatment phentermine 37 5mg ephedrine diet pills side effects of lipitor meridia side effects free strip poker casino side effects of zyprexa buy valium buy cheap diazepam valium side effects rolex watches valtrex dosage rolex replicas buy valtrex buy hydrocodone texas holdem poker buy phentermine buy ultram biloxi casino hard rock buy hydrocodone online las vegas casino valium ambien didrex online lowest price xenical online betting buy ultram online tramadol hcl rolex replica celexa internet baccarat clomid xanax online generic viagra sports gambling bet on sport side effects of zyprexa cheap phentermine ephedrine hcl tramadol cod gamble generic viagra buy fioricet online zyprexa diabetes valium online baccarat wheels clomid ambien online soma carisoprodol buy alprazolam online free poker pachislo slot machines generic meridia celexa order hydrocodone replica rolex discount valtrex buy valtrex free strip blackjack buy viagra buy hydrocodone buy online xenical hydrocodone online online pharmacy tramadol antique slot machines tramadol online online poker zyprexa side effects rolex cialis samples discount valtrex buy soma cheap rolex watch propecia
sports gambling buy online celexa cialis no prescription online sports gambling replica rolex medicare prescription drug plans zoloft agitation fake rolex discount phentermine buy viagra online gambling online atenolol canada discount celexa buy levitra online poker free cialis order cialis strip poker buy hydrocodone without prescription phentermine 37 5mg buy cialis phentermine purchase atenolol buy alprazolam online medicare prescription drug plans buy phentermine buy alprazolam online buy phentermine rolex online gambling buy cialis levitra prescriptions bet music buy ultracet poker online casinos online ultracet meridia discount mexican pharmacy no prescription needed online casinos cheap canadian prescriptions free strip poker new medical prescription drug coverage free blackjack zyprexa lawyer generic viagra levitra strip poker levitra alternative free cialis strip poker online gambling discount phentermine zyprexa attorney replica rolex replica rolex watches buy alprazolam online atenolol xanax no prescription buy cheap ultram strip poker replica rolex prescriptions cod adipex atenolol side effects betting line online casino gambling procter & gamble buy viagra online online tadalafil online gambling internet texas holdem buy soma online buy xenical online alprazolam pictures buy viagra online poker chips hydrocodone no prescription free strip blackjack free poker atenolol and flushing alprazolam no prescription buy viagra online herbal viagra buy hydrocodone online viagra cheap xenical hydrocodone no prescription baccarat vase free online poker casino games zyprexa diabetes purchase tadalafil viagra online viagra alternative free poker buy viagra online casino gambling buy phentermine poker meridia

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