How to write a tutorial page
PLEASE DO NOT EDIT THIS PAGE IN WYSIWIG. IT DELETES THE SPECIAL CHARACTERS!
When writing a tutorial page you may be sharing code.
The best way to share code is NOT to use the following tags:
{code}
{pre}
These will not produce pure text.
Instead you should use use the 'escape character' to escape the code being read as code. In Netcipia (and XWiki) this is a left backslash sign: "\". Use this before the hash sign "#" or bracket that introduces your code.
For example:
\#toc("init" "max" "numbered")
By the way, the backslash will not show up before the code. If you do want to show a backslash on a page you have to use its special character code instead which is \
N.B. Be careful of using the WYSIWYG editor which tends to replace the special characters. This is a bug that needs correcting.
Netcipia uses Xwiki technology. Details of Xwiki macros, some of which may work within Netcipia, are found here:
http://www.xwiki.org/xwiki/bin/view/Code/TocMacro
Comments