, the second for closing it, in order to wrap arbitrary wiki text.
The new way to wrap any wiki content inside a
is to use the `#!div` Wiki processor.
== How to Use `#!div` and `#!span` == #HowtoUseDivSpan
||= Wiki Markup =||= Display =||
{{{#!td
{{{
{{{
#!div class=important style="border: 2pt solid; text-align: center"
This is the ''only'' way to go in Trac 0.11
}}}
}}}
}}}
{{{#!td style="padding-left: 2em"
{{{
#!div class=important style="border: 2pt solid; text-align: center"
This is the ''only'' way to go in Trac 0.11
}}}
}}}
Note that the contents of a `#!div` block are contained in one or more paragraphs, which have a non-zero top and bottom margin by default. This leads to the top and bottom padding in the example above. To remove the top and bottom margin of the contents, add the `compact` class to the `#!div`.
For spans, you should rather use the Macro call syntax:
||= Wiki Markup =||= Display =||
{{{#!td
{{{
Hello
[[span(''WORLD'' (click [#anchor here]), style=color: green; font-size: 120%, id=anchor)]]!
}}}
}}}
|---------------------------------------------------------------------------------
||= Display =||
{{{#!td style="padding-left: 2em"
Hello
[[span(''WORLD'' (click [#anchor here]), style=color: green; font-size: 120%, id=anchor)]]!
}}}
== HTML comments ==
HTML comments are stripped from the output of the `html` processor. To add an HTML comment to a wiki page, use the `htmlcomment` processor (available since 0.12). For example, the following code block:
||= Wiki Markup =||
{{{#!td
{{{
{{{
#!htmlcomment
This block is translated to an HTML comment.
It can contain and &entities; that will not be escaped in the output.
}}}
}}}
}}}
|---------------------------------------------------------------------------------
||= Display =||
{{{#!td
{{{
}}}
}}}
Please note that the character sequence "--" is not allowed in HTML comments, and will generate a rendering error.
== More Information ==
* http://www.w3.org/ -- World Wide Web Consortium
* http://www.w3.org/MarkUp/ -- HTML Markup Home Page
----
See also: WikiProcessors, WikiFormatting, WikiRestructuredText