Formatters
Also available in Deutsch and Русский
1. Text formatter
in the WackoWiki installation package, the following text formatters are included:
1.1. chat
Allows you to generate IM messenger logs in a readable form.
1.2. cl
shows the code in the command line syntax
1.3. code
Allows to display any code in any programming language. This code is not interpreted by the Wacko formatters.
1.4. comment
The text that is commented out is not displayed.
1.5. css
shows the code in the CSS syntax
1.6. details
Creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state.
1.7. email
1.8. hl
PEAR package for syntax highlighting
1.9. html
1.10. ini
shows the code in the INI syntax
1.11. info
wraps content into info boxes
%%(info type="note" title="Remarks" icon=0) content... %%
Types: default
, error
, example
, important
, note
, question
, quote
, success
, warning
title
box title
icon
show icon, default value is 1
1.12. java
shows the code in Java syntax
1.13. latex
shows the page in the LateX syntax
1.14. noautolinks
stops the automatic formatting of a WikiWord
1.15. noinclude
wraps content in noinclude
marker
-
%%(noinclude) content not shown when embedded via include action %%
- The include action strips the content enclosed by the noinclude tags.
-
<!--noinclude-->
,<!--/noinclude-->
- for info boxes, navigation, etc.
-
1.16. paragrafica
detailed description under Typografica.
1.17. pascal
shows the code in Pascal syntax
1.18. php
shows the code in PHP syntax
1.19. post_wacko
internal formatter, use is not necessary
1.20. pre_wacko
internal formatter, use is not necessary
1.21. wacko
internal formatter, use is not necessary
1.22. sql
shows the code in the SQL syntax
1.23. typografica
detailed description under Typografica.
1.24. wiki
Standard formatter that ensures the correct use of the wiki formatting rules.
2. Call a formatter
Any formatter can be called using the following syntax:
%%(formatter) Text %%
If no name is specified, the formatter code
is used.
It is not necessary to call the formatters wiki
and typografica
separately, they interpret any text as a presetting.
If this is not set in the secondary configuration ('typografica' = > '0'), then it is possible to call the text with typografica by %%(typografica) for example -- dash%%
.
As character markup for text formatters, you can use percent signs %%, %%
or grave accents ``, ``
. Both characters are equal. Grave accents can be useful if the text already contains percent signs, which may be mistakenly considered markup.
Beyond that this allows you to wrap a formatter in a formatter, e.g. wrapping a CSS highlighter in a details formatter.
3. Create a new formatter
It is necessary to create a PHP file that takes the input variable $text
and output the result with stdout (for example, using echo / print), and is placed in the /formatter or /formatter/highlight folder.
If you have created a new formatter and it works, send it to us.
Most likely, we'll take it on this page or in the next version of WackoWiki. Thanks in advance.
4. Additional formatters
More formatters can be found in the extension section
5. Links
Wiki text formatter: WackoFormatter