Formatters
Also available in Deutsch[link1] and Русский[link2]1. Text formatter
in the WackoWiki installation package[link3], 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 syntax1.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 syntax1.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 highlighting1.9. html
1.10. ini
shows the code in the INI syntax1.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 titleicon
show icon, default value is 1
1.12. java
shows the code in Java syntax1.13. latex
shows the page in the LateX syntax1.14. noautolinks
stops the automatic formatting of a WikiWord1.15. noinclude
wraps content innoinclude
marker%%(noinclude) content not shown when embedded via include action %%
- The include action[link4] strips the content enclosed by the noinclude tags.
-
<!--noinclude-->
,<!--/noinclude-->
- for info boxes, navigation, etc.
-
1.16. paragrafica
detailed description under Typografica[link5].1.17. pascal
shows the code in Pascal syntax1.18. php
shows the code in PHP syntax1.19. post_wacko
internal formatter, use is not necessary1.20. pre_wacko
internal formatter, use is not necessary1.21. wacko
internal formatter, use is not necessary1.22. sql
shows the code in the SQL syntax1.23. typografica
detailed description under Typografica[link5].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[link6] or /formatter/highlight[link7] folder.If you have created a new formatter and it works, send[link8] 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- /Dev/PatchesHacks[link9]
5. Links
Wiki text formatter: WackoFormatter[link10]6. Questions
Referring pages:
- Dev/Release/R5.0/Upgrade[link11]
- Doc/Deutsch/Formatierer[link12]
- Doc/English[link13]
- Doc/English/Features[link14]
- Doc/English/Formatting[link15]
- Doc/Русский/НаследиеОбновление[link16]
- Doc/Русский/Форматтеры[link17]
- Doc/简体中文/格式化[link18]
- [link1] https://wackowiki.org/doc/Doc/Deutsch/Formatierer
- [link2] https://wackowiki.org/doc/Doc/Русский/Форматтеры
- [link3] https://wackowiki.org/doc/Download
- [link4] https://wackowiki.org/doc/Doc/English/Actions/Include
- [link5] https://wackowiki.org/doc/Doc/English/Typografica
- [link6] https://bitbucket.org/wackowiki/wackowiki/src/master/src/formatter/
- [link7] https://bitbucket.org/wackowiki/wackowiki/src/master/src/formatter/highlight/
- [link8] https://wackowiki.org/bugs/
- [link9] https://wackowiki.org/doc/Dev/PatchesHacks
- [link10] https://wackowiki.org/doc/Dev/Projects/WackoFormatter
- [link11] https://wackowiki.org/doc/Dev/Release/R5.0/Upgrade#a-3159
- [link12] https://wackowiki.org/doc/Doc/Deutsch/Formatierer#a-3159
- [link13] https://wackowiki.org/doc/Doc/English#a-3159
- [link14] https://wackowiki.org/doc/Doc/English/Features#a-3159
- [link15] https://wackowiki.org/doc/Doc/English/Formatting#a-3159
- [link16] https://wackowiki.org/doc/Doc/Русский/НаследиеОбновление#a-3159
- [link17] https://wackowiki.org/doc/Doc/Русский/Форматтеры#a-3159
- [link18] https://wackowiki.org/doc/Doc/简体中文/格式化#a-3159