> HelpOnFormatting

Version as of 2005-10-09 04:27:55

Clear message

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. Underlined text needs a double underscore on each side. You get superscripted text by enclosing it into caret characters, and subscripts have to be embedded into double commas.

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, unless you head is filled with H,,2,,O.

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, unless you head is filled with H2O.

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:
  1 
  2 
from colors import palette
palette.colorize('python')