Version 59 (modified by guest, 5 years ago)

--

buspar cheap prescription medication information side effects of clomid klonopin picture buy online fioricet drug ultracet buy prevacid buy fioricet prevacid online xanax online soma online lexapro buy diazepam buy ultram side effects of clomid diazepam buy online atenolol side effects generic prevacid prescription drugs from canada tramadol cod biaxin buying clomid success rates prevacid solutab ambien side effects drug ultracet zithromax z pak alcohol lexapro buy ephedra seeds vicodin no prescription hydroxycut with ephedrine buy citrate sildenafil levitra alprazolam online buy levitra online yasmin rios tenuate diet pills cialis discount phentermine celexa zithromax side effects buy fioricet online cialis online prescription tetracycline citrate sildenafil vioxx celebrex order lortab online without current prescription meridia effectiveness generic cialis klonopin side effects cheap cialis hydrocodone cod nexium online nexium online klonopin picture side effects for valtrex cialis online klonopin wafer vicodin es lortab prescription online buy cialis glucophage xr valium without prescription ambien online alcohol lexapro buy cheap ultram discount phentermine buy cialis buy online ultracet propecia online clomid success rates mexican pharmacy no prescription needed klonopin wafer effects of zoloft buy celebrex levitra tramadol canada discount celexa 2 diabetes metformin type buy vicodin online buy ephedra prevacid getting alprazolam without a prescription buy tetracycline discount phentermine prescription drug reference effects lexapro side online pharmacy tramadol lexapro symptom withdrawal buy cialis zithromax side effects buy soma cheap valium without prescription cosmetics retin a buy online carisoprodol drug klonopin ephedrine buy levitra online valium online meridia effectiveness prevacid solutab phentermine xanax xr celexa acomplia viagra alternative nasonex side effects of lorazepam effects lexapro side glucophage phentermine valtrex medication diazepam xanax xr buy ephedrine ephedrine lexapro zoloft suicide clomid didrex cheap cialis drug prescription lexapro symptom withdrawal clomid and twins liquid propecia carisoprodol gain lexapro weight cheap soma affect nexium side celebrex cancer alcohol lexapro gain lexapro weight zithromax buy cialis actonel bad side effects zithromax antibiotic atenolol and flushing buy online retin a generic prevacid atenolol cheap levitra buy online ultram cheap zanaflex hydrocodone clomid and twins buy drugs prescription online buy online carisoprodol side effects of clomid cheap levitra generic tadalafil buy ephedrine diet fuel with ephedra effects nexium side cheap levitra online zyban buy nexium drug fioricet buy ephedra online tramadol cod prevacid online buy online fioricet diazepam buy online generic prevacid norvasc 5mg buspar buy tetracycline cheap codeine buy online diazepam buy hydrocodone online buy ambien atenolol medication cialis online prescriptions usa cheap bextra and cardiovascular safety buy soma online valtrex medication valium no prescription glucophage cheap diazepam atenolol cheap prescription medication phentermine discount phentermine buy zyban online prescription medicine ephedrine getting alprazolam without a prescription vicodin addiction xanax xr wellbutrin online atenolol atenolol medication buy drugs prescription online buy online celexa order acomplia celebrex buy online ultracet bupropion side effects no prescription vigrx online pharmacy tramadol cialis online ephedrine diet pills cheap levitra buy levitra side effects for valtrex buy ambien online buy ephedrine soft tab tadalafil nexium cheap levitra buy celebrex buy celebrex discount phentermine lexapro withdrawal ephedrine buy acomplia prescription diet pills no prescription needed tamiflu no prescription risperdal prescription drug abuse buy tramadol hydrocodone online klonopin meridia effectiveness buy ambien online herbal viagra buy nexium buy soma cheap buy cheap xenical klonopin wafer klonopin withdrawal generic ultram alcohol lexapro valium norvasc 5 mg cheap cialis buy cheap fioricet buy diazepam xango mangosteen juice buy hydrocodone drug klonopin buy ambien side effects for valtrex carisoprodol buying phentermine online buy phentermine buy online imitrex buy carisoprodol buy vicodin online what does alprazolam look like celebrex cancer klonopin withdrawal carisoprodol buy online

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