What are formatters and how do they work?
The formatter is in charge of converting wiki syntax into HTML output.See also
- Explanation for developers
- Wanted Wikka formatters
- SyntaxHighlighter
- GeSHi -WikkaGeshiIntegration
- Explanation for developers
- 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.4.2:
- Native:
- code - wraps the the block in <pre> </pre> tags, show as plain text.
- csv - formats CSV data
- html - publishes HTML pages without the headers, footers, and menu items
- 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