Revision [8741]
This is an old revision of FormatterInfo made by NilsLindenberg on 2005-05-31 12:13:12.
What are formatters and how do they work?
The formatter is in charge of converting wiki syntax into HTML output.See also
- FormatterDevInfo Explanation for developers
- WantedFormatters Wanted Wikka formatters
- SyntaxHighlighter
- GeSHi -WikkaGeshiIntegration
- FormatterDevInfo Explanation for developers
- WantedFormatters Wanted Wikka formatters
- SyntaxHighlighter
- GeSHi -WikkaGeshiIntegration
If you wrap a block of text in double percent signs, you can display the content in another format/Layout.
Use(r) point of view
Included formatters in Wikka 1.1.6.0:
- Native:
- code - wraps the the block in <pre> </pre> tags, show as plain text.
- email - add every reply in another color.
- ini - highlighting for ini-file format.
- php - based on the PHP highlight_string function.
- wakka - this is the code behind the function $this->Format and is responsible for translating the wiki-code into html-code.
- GeSHi - see SyntaxHighlighter for a list of all supported syntax.
- (SafeHTML can also be seen as a formatter of safe html code, but is accessed by wrapping the code in double-double-quote signs. )
Usage:
- %%(formatter[;line-number]) code %%
- Example:
%%(ini)
[title section]
key1=var1
key2=var2%%
- Result
[title section]
key1=var1
key2=var2
key1=var1
key2=var2
CategoryDocumentation