# Changes between Version 3 and Version 4 of WikiProcessors

Ignore:
Timestamp:
01/14/19 00:01:55 (2 years ago)
Comment:

--

### Legend:

Unmodified
or table cells - using an alternative markup syntax, like [wiki:WikiHtml raw HTML] and [wiki:WikiRestructuredText Restructured Text] or [http://www.textism.com/tools/textile/ textile] == Using Processors To use a processor on a block of text, first delimit the lines using a Wiki ''code block'': {{{ {{{ }}} Immediately after the {{{ or on the line just below, add #! followed by the ''processor name''. Immediately after the {{{ or on the line just below, add #! followed by the ''processor name'': {{{ 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, 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. == Examples == 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. == Examples ||= Wiki Markup =||= Display =|| }}} }}} == Available Processors == == Available Processors The following processors are included in the Trac distribution: || '''#!default''' || Present the text verbatim in a preformatted text block. This is the same as specifying ''no'' processor name (and no #!) || || '''#!comment''' || Do not process the text in this section (i.e. contents exist only in the plain text - not in the rendered page). || |||| || ||||= '''HTML related''' =|| || '''#!comment''' || Do not process the text in this section, i.e. contents exist only in the plain text - not in the rendered page. || || '''#!rtl''' || Introduce a Right-To-Left block with appropriate CSS direction and styling ''(since 0.12.2)'' || |||| || ||||= '''[=#HTMLrelated HTML related]''' =|| || '''#!html''' || Insert custom HTML in a wiki page. || || '''#!htmlcomment''' || Insert an HTML comment in a wiki page (''since 0.12''). || || '''#!td''' || Wrap an arbitrary Wiki content inside a element (''since 0.12'') || || '''#!th''' || Wrap an arbitrary Wiki content inside a element (''since 0.12'') || || '''#!tr''' || Can optionally be used for wrapping #!td and #!th blocks, either for specifying row attributes of better visual grouping (''since 0.12'') || || '''#!tr''' || Can optionally be used for wrapping #!td and #!th blocks, either for specifying row attributes or better visual grouping (''since 0.12'') || || '''#!table''' || Can optionally be used for wrapping #!tr, #!td and #!th blocks, for specifying table attributes. One current limitation however is that tables cannot be nested. (''since 0.12'') || || || See WikiHtml for example usage and more details about these processors. || |||| || || '''#!textile''' || Supported if [http://cheeseshop.python.org/pypi/textile Textile] is installed. See [http://www.textism.com/tools/textile/ a Textile reference]. || |||| || ||||= '''Code Highlighting Support''' =|| ||||= '''[=#CodeHighlightingSupport Code Highlighting Support]''' =|| || '''#!c''' [[BR]] '''#!cpp''' (C++) [[BR]] '''#!python''' [[BR]] '''#!perl''' [[BR]] '''#!ruby''' [[BR]] '''#!php''' [[BR]] '''#!asp''' [[BR]] '''#!java''' [[BR]] '''#!js''' (Javascript) [[BR]] '''#!sql''' [[BR]] '''#!xml''' (XML or HTML) [[BR]] '''#!sh''' (!Bourne/Bash shell) [[BR]] '''etc.''' [[BR]] || Trac includes processors to provide inline syntax highlighting for source code in various languages. [[BR]] [[BR]] Trac relies on external software packages for syntax coloring, like [http://pygments.org Pygments]. [[BR]] [[BR]] See TracSyntaxColoring for information about which languages are supported and how to enable support for more languages. || |||| || }}} For more processor macros developed and/or contributed by users, visit: * [trac:ProcessorBazaar] * [trac:MacroBazaar] * [http://trac-hacks.org Trac Hacks] community site Developing processors is no different from Wiki macros. In fact they work the same way, only the usage syntax differs. See WikiMacros#DevelopingCustomMacros for more information. For more processor macros developed and/or contributed by users, visit the [http://trac-hacks.org/wiki/WikiStart Trac Hacks] community site. Developing processors is no different from Wiki macros. In fact, they work the same way, only the usage syntax differs. See WikiMacros#DevelopingCustomMacros for more information. ----