WackoFormatter: Text Formatting Rules


Table Of Contents
Basic Formatting
Links
Headlines
Bulleted and Numbered Lists
Cite and definitions
Footnotes
Tables
Miscellaneous
Extensions - additional formatters (Highlighters)

Wacko text formatting is slightly different from other Wikis, so you should read the examples below.

Text enclosed in pairs of double quotes is not formatted and remains unchanged when displayed.

Basic Formatting


**bold**
bold
//italic//
italic
__underline__
underline
--strikethrough--
strikethrough
##monospace text##
monospace text
>>centered<<
centered
!!emphasis!! (also ''emphasis'',
but it is better not to use it).
emphasis
??note??
note

Links

Attention! This functionality heavily depends on used WackoFormatterConfig class. Default class provides not all of this linking functionality!

[[http://www.webscript.ru]] or ((http://www.webscript.ru))
http://www.webscript.ru
[[http://www.webscript.ru Webscript]] or ((http://www.webscript.ru Webscript))
Webscript
[[SandBox]] or ((SandBox))
SandBox
[[SandBox The sandbox page]]
or ((SandBox The sandbox page))
The sandbox page
http://www.ya.ru is highlighted automatically.
http://www.ya.ru
http://www.yandex.ru/logo1.gif
Image with no link.

((/HomePage http://www.yandex.ru/logo1.gif))
Image with a link.

{{a name="test"}} or {{anchor name="test"}}
anchor declaration.

((#test)) or ((/HomePage#TOC_1))
anchor reference.
test or /HomePage#TOC_1
mailto:address@domain.com
email.
mailto:address@domain.com

NB: mixed case words (LikeThis) do not need to be enclosed in brackets. For internal links (inside this Wiki), the complete URL should not be written
(otherwise the link will not work). Add "http://" only for external links.


NB: To prevent a WordLikeThis from becoming a link, place a ~ (tilde) in front of it.


NB: You can also link to non BumpyText words using: ((Clusters here)) = here.

Headlines


== big Headline ==

big Headline


=== bigger Headline ===

bigger Headline


==== middle Headline ====

middle Headline


===== smaller Headline =====

smaller Headline


====== small Headline ======
small Headline

Bulleted and Numbered Lists


Indent lists with double spaces, and use *, 1., A., a., or i. to specify the type of list you want.


NB: here "_" (underscore) means space character.

first line
__indented line
first line
indented line
__*bulleted list
__*bulleted list-2
  • bulleted list
  • bulleted list-2
__1. numbered list
__1. numbered list-2
  1. numbered list
  2. numbered list-2
__A. using uppercase characters
__A. using uppercase characters-2
  1. using uppercase characters
  2. using uppercase characters-2
__a. using lowercase characters
__a. using lowercase characters-2
  1. using lowercase characters
  2. using lowercase characters-2
__i. using Roman numbers
__i. using Roman numbers-2
  1. using Roman numbers
  2. using Roman numbers-2
__1. numbered list
____1. nested numbered list
____1. nested numbered list-2
__1. numbered list-2
  1. numbered list
    1. nested numbered list
    2. nested numbered list-2
  2. numbered list-2
__1.#5 numbered list begins with 5
__1. numbered list-next
  1. numbered list begins with 5
  2. numbered list-next

Cite and definitions

<[ Citation of text
(blockquote) ]>
Citation of text
(blockquote)

(?Term Some definition?)
Term
(?Term containing spaces == Some other definition?)
Term containing spaces

Footnotes

Text, then footnote[[*]] and second one[[**]]
Text, then footnote* and second one**
Text, then numeric footnote[[*1]] and second one[[*2]]
Text, then numeric footnote1 and second one2
[[#*]] Text for first footnote
[[#**]] Text for second footnote
[[#1]] Text for numeric footnote
[[#2]] Text for second numeric footnote
* Text for first footnote
** Text for second footnote
1 Text for numeric footnote
2 Text for second numeric footnote

Tables


Table with border
#|
||cell11|cell12|cell13||
||cell21|cell22||
|#


cell11cell12cell13
cell21cell22

Table without border, 100% width
#||
||cell11|cell12|cell13||
||cell21|cell22||
||#


cell11cell12cell13
cell21cell22

Miscellaneous


Horizontal rule (separator):
----



Forced line break:
test---shmest
test
shmest


Text output "as-is" - ignoring markup
Text should be enclosed by a pair of double quotes.


HTML output "as-is"
this works only if you allow it by adjusting configuration option allow_rawhtml.
<# <input type="text"> #>

NB: it is very dangerous option, avoid XSS!


Superscript:
E=mc^^2^^
E=mc2


Subscript:
H vv2vv O
2 O


Extensions - additional formatters (Highlighters)

WackoWiki is easily extended with text formatters. They are called using syntax %%(name) text%%.

Attention! This functionality heavily depends on used WackoFormatterConfig class. Default class does not provide this functionality at all!

There are several formatters included in Wacko package:

%%(php) PHP-code%%
<?
phpinfo
();
$s = "Hello, World!\n";
print
"$s";
?>

Attention: that code should begin with <? and end with ?>, because builtin PHP parser identifies PHP by those separators.
%%(comments) Comments, they will be hidden when the page is stored and redisplayed %%

%%(icq) ICQ Pro Logs%%

SomebodyHello14.05.20 14:52
RomanYes, hello14.05.20 14:52
SomebodyTesting
blah blah
28.06.20 2:25
RomanYep28.06.20 2:25

There's also icq_t (Trillian), icq_l (ICQ Lite) and icq_m (Miranda IM + nConvers) formatters.
%%(email) Email%%
Hi!
RI>> Yes, it is.
>Are you sure?

Of course, yes!

Roman.

%%(sql) SQL-code%%
SELECT * FROM sometable WHERE a = '12' and b = 2 ORDER BY c DESC

There's also (ini), (html), (css) and (pascal) highlighters.
<html>
<a href="http://www.ya.ru" width="8">test</a>
</html>


[Wiki]
BestEngine="WackoWiki"
Version=4


 body {margin: 0; padding:5px;}

.class {background:url("http://www.ya.ru/")} 


BEGIN
 if a = 15 then writeln("test");

END.


There's also highlighters for CSS, diff, DTD, Javascript, mySQL, PHP, Python, SQL, XML.
Them can be called as (hl css) etc.
body {margin: 0; padding:5px;}

.class {background:url("http://www.ya.ru/")}


var a = document.getElementById("test");

a.value = new Array(15, 31);
function echo (msg) {alert(msg)};


<?
phpinfo();
$s = "Hello, World!\n";
print "$s";

?>


<config>
<section name="test">
  <var>Test</var>

  <val><![CDATA[..text...]]></val>
</section>
</config>