Also available in ((/Doc/Deutsch/Formatierer Deutsch)) and ((/Doc/Русский/Форматтеры Русский))
{{toc numerate=1}}
===Text formatter===
in the WackoWiki ((/Download installation package)), the following text formatters are included:
====chat====
Allows you to generate IM messenger logs in a readable form.
====cl====
shows the code in the command line syntax
====code====
Allows to display any code in any programming language. This code is not interpreted by the Wacko formatters.
====comment====
The text that is commented out is not displayed.
====css====
shows the code in the CSS syntax
====details====
Creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state.
====email====
====hl====
PEAR package for syntax highlighting
====html====
====ini====
shows the code in the INI syntax
====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##
====java====
shows the code in Java syntax
====latex====
shows the page in the LateX syntax
====noautolinks====
stops the automatic formatting of a WikiWord
====noinclude====
wraps content in ##noinclude## marker
``%%(noinclude) content not shown when embedded via include action %%``
* The ((/Doc/English/Actions/Include include action)) strips the content enclosed by the noinclude tags.
* ##""<!--noinclude-->""##, ##""<!--/noinclude-->""##
* for info boxes, navigation, etc.
====paragrafica====
detailed description under ((Typografica)).
====pascal====
shows the code in Pascal syntax
==== php====
shows the code in PHP syntax
==== post_wacko====
internal formatter, use is not necessary
==== pre_wacko====
internal formatter, use is not necessary
==== wacko====
internal formatter, use is not necessary
==== sql====
shows the code in the SQL syntax
==== typografica====
detailed description under ((Typografica)).
==== wiki====
Standard formatter that ensures the correct use of the wiki formatting rules.
===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.
===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 ((source:master/src/formatter/ /formatter)) or ((source:master/src/formatter/highlight/ /formatter/highlight)) folder.
If you have created a new formatter and it works, ((https://wackowiki.org/bugs/ send)) it to us.
Most likely, we'll take it on this page or in the next version of WackoWiki. Thanks in advance.
===Additional formatters===
More formatters can be found in the extension section
* ((/Dev/PatchesHacks))
===Links===
Wiki text formatter: ((/Dev/Projects/WackoFormatter WackoFormatter))
===Questions===
{{backlinks}}