UserGuide: Miscellaneous syntax

This revision is from 2009/07/23 22:20. You can Restore it.


Some sequences of characters are automatically replaced:

  • Arrows : <-- : ←, --> : →, <--> : ↔
  • Dash : -- : — (since LionWiki 2.0)
  • Copyrights : (c) or (C) : ©, (r) or (R) : ®


Code syntax is useful when you need to keep original spacing and layout of text, especially for programming source code.

{{import sys

if len(sys.argv) == 2:

print "Hello",sys.argv[1]}}


import sys
if len(sys.argv) == 2:
   print "Hello",sys.argv[1]

Horizontal line(Edit)

by ----

Suppressing wiki syntax(Edit)

By using ^ character before syntax keyword or using {{something}}. If you still don't know how, take a look on wiki code of this page, there are plenty of examples. If you want to insert ^ character, you have to double it, i.e. ^^

HTML code(Edit)

Do you want to insert youtube video to your site? Or any other HTML code? Just insert it between {html}some html code{/html}. This feature is potentially dangerous so there's option to turn it off in config file ($NO_HTML = true).

{html}<object width="217" height="177"><param name="movie" value=""></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="217" height="177"></embed></object>{/html}

HTML entities(Edit)

Since LionWiki 2.0. HTML entities are automatically recognized and left without modification.


LionWiki joins adjacent newlines together, if you need more than one newline, use {br}.

Internal comments(Edit)

Since LionWiki 2.0. You can insert internal comments not intended to be displayed using HTML-like syntax <!-- text not intended to be displayed -->