[103] The oldest known version of this page was created on
2005-05-31 12:13:12 by
NilsLindenberg [copied part about development to FormatterDevInfo]
Wikka Documentation
What are formatters and how do they work?
The formatter is in charge of converting wiki syntax into HTML output.
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.
- 3rd Party:
- 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%%
[title section]
key1=var1
key2=var2
CategoryDocumentation