Using Processors

To use a processor on a block of text, first delimit the lines using a Wiki code block:

{{{
The lines
that should be processed...
}}}

Immediately after the {{{ or on the line just below, add #! followed by the processor name:

{{{
#!processorname
The lines
that should be processed...
}}}

This is the "shebang" notation, familiar to most UNIX users.

Besides their content, some Wiki processors can also accept parameters, which are then given as key=value pairs after the processor name and on the same line. If value has to contain space, as it's often the case for the style parameter, a quoted string can be used (key="value with space").

As some processors are meant to process Wiki markup, it's quite possible to nest processor blocks.
You may want to indent the content of nested blocks for increased clarity, this extra indentation will be ignored when processing the content.

See TracSyntaxColoring for information about which languages are supported and how to enable support for more languages.

Since 1.1.2 the default, coding highlighting and MIME-type processors support the argument lineno for adding line numbering to the code block. When a value is specified, as in lineno=3, the numbering will start at the specified value. When used in combination with the lineno argument, the marks argument is also supported for highlighting lines. A single line number, set of line numbers and range of line numbers are allowed. For example, marks=3, marks=3-6, marks=3,5,7 and marks=3-5,7 are all allowed. The specified values are relative to the numbered lines, so if lineno=2 is specified to start the line numbering at 2, marks=2 will result in the first line being highlighted.

Using the MIME type as processor, it is possible to syntax-highlight the same languages that are supported when browsing source code.