======Wikka Formatting Guide====== <<===General Guidelines=== If a markup sequence is not in these guidelines, then it is not officially supported. Use caution when implementing markup that is not officially supported by this document, as undocumented functionality may change with version updates. Unless otherwise stated in these guidelines, all markup is line based, that is, a newline character should not intervene. These are identified as 'inline' markup. <<::c:: ===Escaping Markup=== Anything between 2 sets of double-quotes is not formatted. This is the equivalent of escaping a character(s): ~##""**two bold ""**"" stars**""## ~**two bold ""**"" stars** In this case, the second set of ""**"" (escaped) stars will be ignored, //i.e.,// will not terminate the bold markup. You can also use double-quote escaping to avoid linking of CamelCase words, e.g. ~##""This ""WikiWord"" is not parsed as a link""## ~This ""WikiWord"" is not parsed as a link ===1. Text Formatting=== All this section is inline. ~##""**I'm bold**""## ~**I'm bold ** ~##""//I'm italic text!//""## ~//I'm italic text!// ~##""And I'm __underlined__!""## ~And I'm __underlined__! ~##""##monospace text##""## ~##monospace text## ~##""''highlight text''""## (using 2 single-quotes) ~''highlight text'' ~##""++Strike through text++""## ~++Strike through text++ ~##""Press #%ANY KEY#%""## ~Press #%ANY KEY#% ~##""@@Center text@@""## ~@@Center text@@ ===2. Headers=== All this section is inline. Use between five ##=## (for the biggest header) and two ##=## (for the smallest header) on both sides of a text to render it as a header. ~##""====== Really big header ======""## ~====== Really big header ====== ~##""===== Rather big header =====""## ~===== Rather big header ===== ~##""==== Medium header ====""## ~==== Medium header ==== ~##""=== Not-so-big header ===""## ~=== Not-so-big header === ~##""== Smallish header ==""## ~== Smallish header == ===3. Horizontal separator=== ~##""----""## ---- ===4. Forced line break=== ~##""---""## --- ===5. Lists and indents=== These items are block based, each entry (list item) being an inline You can indent text using a **~**, a **tab** or **4 spaces** (which will auto-convert into a tab). ##""~This text is indented
~~This text is double-indented
    This text is also indented""## ~This text is indented ~~This text is double-indented This text is also indented To create bulleted/ordered lists, use the following markup (you can always use 4 spaces instead of a ##**~**##): **Bulleted lists** ##""~- Line one""## ##""~- Line two""## - Line one - Line two **Numbered lists** ##""~1) Line one""## ##""~1) Line two""## 1) Line one 1) Line two **Ordered lists using uppercase characters** ##""~A) Line one""## ##""~A) Line two""## A) Line one A) Line two **Ordered lists using lowercase characters** ##""~a) Line one""## ##""~a) Line two""## a) Line one a) Line two **Ordered lists using roman numerals** ##""~I) Line one""## ##""~I) Line two""## I) Line one I) Line two **Ordered lists using lowercase roman numerals** ##""~i) Line one""## ##""~i) Line two""## i) Line one i) Line two ===6. Inline comments=== To format some text as an inline comment, use an indent ( **~**, a **tab** or **4 spaces**) followed by a **""&""**. **Example:** ##""~& Comment""## ##""~~& Subcomment""## ##""~~~& Subsubcomment""## ~& Comment ~~& Subcomment ~~~& Subsubcomment ===7. Images=== Images may be used inline or at paragraph(block) level. The markup must be inline To place images on a Wiki page, you can use the ##image## action. **Example:** ~##""{{image class="center" alt="DVD logo" title="An Image Link" url="images/dvdvideo.gif" link="RecentChanges"}}""## ~{{image class="center" alt="dvd logo" title="An Image Link" url="images/dvdvideo.gif" link="RecentChanges"}} Image links can be external, or internal Wiki links. You don't need to enter a link at all, and in that case just an image will be inserted. You can use the optional classes ##left## and ##right## to float images left and right. You don't need to use all those attributes, only ##url## is required while ##alt## is recommended for accessibility. ===8. Links=== {{since version="1.3" display="inline"}} <## characters before and after the block. **Example:** ~##"">>Some text in a right-floated box hanging around>> Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.""## >>Some text in a right-floated box hanging around>>Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. ::c:: Use ##""::c::""## to clear floated blocks. ===12. Code formatters=== These are at the block level and may contain newlines. All white space within the block is respected. No further markup is acted upon within the block, but see syntax highlighting below. You can easily embed code blocks in a wiki page using a simple markup. Anything within a code block is displayed literally. To create a **generic code block** you can use the following markup: ~##""%% This is a code block %%""##. %% This is a code block %% To create a **code block with syntax highlighting**, you need to specify a //code formatter// (see below for a list of available code formatters). ~##""%%(""{{color c="red" text="php"}}"")
<?php
echo "Hello, World!";
?>
%%""## %%(php) %% You can also specify an optional //starting line// number. ~##""%%(php;""{{color c="red" text="15"}}"")
<?php
echo "Hello, World!";
?>
%%""## %%(php;15) %% If you specify a //filename//, this will be used for downloading the code. ~##""%%(php;15;""{{color c="red" text="test.php"}}"")
<?php
echo "Hello, World!";
?>
%%""## %%(php;15;test.php) %% **List of available code formatters:** {{table columns="6" cellpadding="1" cells="LANGUAGE;FORMATTER;LANGUAGE;FORMATTER;LANGUAGE;FORMATTER;ABAP;abap;Actionscript;actionscript;ADA;ada;Apache Log;apache;AppleScript; applescript;ASM;asm;ASP;asp;AutoIT;autoit;Axapta/Dynamics Ax X++;xpp;Bash;bash;BlitzBasic;blitzbasic;BNF;bnf;C;c;C for Macs;c_mac;c#;csharp;C++;cpp;C++ (QT extensions);cpp-qt;CAD DCL;caddcl;CadLisp;cadlisp;CFDG;cfdg;ColdFusion;cfm; CSS;css;D;d;Delphi;delphi;Diff-Output;diff;DIV; div;DOS;dos;dot;dot;Eiffel;eiffel;Fortran;fortran;FOURJ's Genero 4GL;genero;FreeBasic;freebasic;GML;gml;Groovy;groovy;Haskell;haskell;HTML;html4strict;INI;ini;IO;io;Inno Script;inno;Java 5;java5;Java;java;Javascript;javascript;LaTeX;latex;Lisp;lisp;Lua;lua;Matlab;matlab;Microchip Assembler;mpasm;Microsoft Registry;reg;mIRC;mirc;Motorola 68000 Assembler;m68k;MySQL;mysql;NSIS;nsis;Objective C;objc;OpenOffice BASIC;oobas;Objective Caml;ocaml;Objective Caml (brief);ocaml-brief;Oracle 8;oracle8;Pascal;pascal;Per (forms);per;Perl;perl;PHP;php;PHP (brief);php-brief;PL/SQL;plsql;Python;phyton;Q(uick)BASIC;qbasic;robots.txt;robots;Ruby;ruby;Ruby on Rails;rails;SAS;sas;Scheme;scheme;sdlBasic;sdlbasic;SmallTalk;smalltalk;Smarty;smarty;SQL;sql;TCL/iTCL;tcl;T-SQL;tsql;Text;text;thinBasic;thinbasic;Unoidl;idl;VB.NET;vbnet;VHDL;vhdl;Visual BASIC;vb;Visual Fox Pro;visualfoxpro;WinBatch;winbatch;XML;xml;ZiLOG Z80;z80;###"}} ===13. Mindmaps=== Wikka has native support for [[FreeMind mindmaps]]. There are two options for embedding a mindmap in a wiki page. **Option 1:** Upload a ""FreeMind"" file to a webserver, and then place a link to it on a wikka page: ##""http://yourdomain.com/freemind/freemind.mm""## No special formatting is necessary. **Option 2:** Paste the ""FreeMind"" data directly into a wikka page: ~- Open a ""FreeMind"" file with a text editor. ~- Select all, and copy the data. ~- Browse to your Wikka site and paste the Freemind data into a page. ===14. Embedded HTML=== You can easily paste HTML in a wiki page by wrapping it into two sets of doublequotes. ~##""[html code]""## **Examples:** ~##""y = xn+1""## ~""y = xn+1"" ~##""CSS""## ~""CSS"" By default, some HTML tags are removed by the ""SafeHTML"" parser to protect against potentially dangerous code. The list of tags that are stripped can be found on the Wikka:SafeHTML page. It is possible to allow //all// HTML tags to be used, see UsingHTML for more information. ===15. Converting HTML to Wiki=== Visit http://diberri.dyndns.org/html2wiki.html It allows you to paste HTML into a textbox and it will then convert it to Wikka Wiki markup (as well as a bunch of other Wiki dialects) ---- CategoryEN