The VSTa Wiki   HelpOnFormatting UserPreferences
 
HelpContents Search Diffs Info Edit Subscribe XML Print View

1 Text Formatting Rules

Leave blank lines between paragraphs. Use [[BR]] to insert linebreaks into paragraphs.

You can render text in italics or bold. To write italics, enclose the text in double single quotes. To write bold, enclose the text in triple single quotes. You get superscripted text by enclosing it into caret characters.

To insert program source without reformatting in a monospace font, use three curly braces:

10 PRINT "Hello, world!" 
20 GOTO 10 

Note that within code sections, both inline and display ones, any wiki markup is ignored. An alternative and shorter syntax for inlined code is to use backtick characters (note that this can be disabled by the site's configuration, but is enabled by default).

For more information on the possible markup, see HelpOnEditing.

1.1 Example

Mixing ''italics'' and '''bold''': 
 * '''''Mix''' at the beginning'' 
 * '''''Mix'' at the beginning''' 
 * '''Mix at the ''end''''' 
 * ''Mix at the '''end''''' 
 
You might recall ''a''^2^ `+` ''b''^2^ `=` ''c''^2^ from your math lessons. 
 
An { { {inline code sequence} } } has the start and end markers on the same line. Or you use `backticks`. 
 
A code display has them on different lines: { { { 
'''No''' markup here! 
} } } 
/!\ In the above example, we "escaped" the markers for source code sequences by inserting spaces between the curly braces.

1.2 Display

Mixing italics and bold:

You might recall a2 + b2 = c2 from your math lessons.

An inline code sequence has the start and end markers on the same line. Or you use backticks.

A code display has them on different lines:

'''No''' markup here! 

1.3 Colorized code displays

There are several ways to get colorized formatting of Python code1:
  1. start a code display with a line only containing "#!python"
  2. embed a file attachment bearing a ".py" extension via "inline:"
  3. start a page with a Python format processing instruction ("#format python")

Example:



 >  

 
 
: Non-ASCII character '\xfc' in file /home/wiki/moin/MoinMoin/processor/Colorize.py on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (Colorize.py, line 4)
Python 2.6.5
/usr/bin/python

A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call first. The exception attributes are:

/home/wiki/moin/MoinMoin/parser/wiki.py in format(self=<MoinMoin.parser.wiki.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>, form=FieldStorage(None, None, []))
  808                     line = line[endpos+3:]                    
  809                 elif string.strip(line)[:2] == "#!" and string.find(line, 'python') > 0:
  810                     from MoinMoin.processor.Colorize import process
       global MoinMoin = undefined, global processor = undefined, global Colorize = undefined, process = undefined
  811                     self.processor = process
  812                     self.in_pre = 2

/home/wiki/moin/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.Request instance>, msg='', **keywords={'count_hit': 1})
  382         else:
  383             # parse the text and send the page content
  384             Parser(body, request).format(self.formatter, form)
       Parser = <class MoinMoin.parser.wiki.Parser>, body = "== Text Formatting Rules ==\n\nLeave blank lines b...rs import palette\npalette.colorize('python')\n}}}\n", request = <MoinMoin.request.Request instance>, global format = undefined, self = <MoinMoin.Page.Page instance>, global formatter = undefined, form = FieldStorage(None, None, [])
  385 
  386             # check for pending footnotes

/home/wiki/moin/MoinMoin/cgimain.py in run(properties={'standalone': 1})
  201 
  202             if config.allow_extended_names:
  203                 Page(query).send_page(request, count_hit=1)
       Page = <class MoinMoin.Page.Page>, query = 'HelpOnFormatting', global send_page = undefined, request = <MoinMoin.request.Request instance>, global count_hit = undefined
  204             else:
  205                 from MoinMoin.parser.wiki import Parser