HelpForUsers > HelpOnEditing > HelpOnFormatting

This page describes using the MoinMoin wiki syntax (which is the default syntax for a MoinMoin based wiki, but not the only one). For other parsers/syntaxes take a look at HelpOnParsers.

General

Typeface

Name/Sample

Markup

Notes

italic

''italic''

Double single quotes.

bold

'''bold'''

Triple single quotes.

monospace

`monospace`

Single backticks. Wiki markup is ignored.

code

{{{code}}}

Example. Wiki markup is ignored.

underline

__underline__

superscript

^super^script

subscript

,,sub,,script

smaller

~-smaller-~

larger

~+larger+~

stroke

--(stroke)--

Colorize text

Colorizing is enabled in tables without additional macros (see HelpOnTables).

Use the Color2 macro to color text both in and out of tables.

Usage:

<<Color2(color,bgcolor,font,text)>>
<<Color2(color,bgcolor,text)>>
<<Color2(color,text)>>

Color names available appear to be the standard X11 colors.

Example:

<<Color2(red,blue,courier,red courier on blue)>>

<<Color2(green,yellow,Green Font on Yellow Background)>>

<<Color2(orange,Orange Text)>>

Results:

red courier on blue

Green Font on Yellow Background

Orange Text

Colorize code (Syntax Highlighting)

There are several ways to highlight code:

  1. Start a special code block containing the parser's name: {{{#!parsername

  2. Embed a file attachment bearing a supported extension (such as ".py") with {{attachment:test.py}}

  3. Begin a page with the format processing instruction: #format parsername

Example.

To see the list of supported languages see HelpOnParsers.


Examples

Mixing ''italic'' and '''bold'''

Markup

Result

'''''Mix''' at the beginning''

Mix at the beginning

'''''Mix'' at the beginning'''

Mix at the beginning

'''Mix at the ''end'''''

Mix at the end

''Mix at the '''end'''''

Mix at the end

Code

{{{
10 PRINT "Hello, world!"
20 GOTO 10
}}}

Result:

10 PRINT "Hello, world!"
20 GOTO 10

Superscript & Subscript

You might recall ''a''^2^ + ''b''^2^ = ''c''^2^ from your math lessons, unless your head is filled with H,,2,,O.

Result:

You might recall a2 + b2 = c2 from your math lessons, unless your head is filled with H2O.

Colorized Code, Method #1

{{{#!python
from colors import palette
palette.colorize('python')
}}}

Result:

   1 from colors import palette
   2 palette.colorize('python')

HelpOnFormatting (last edited 2010-04-27 17:44:31 by SteveKillen)