welcome: please sign in

The following 199 words could not be found in the dictionary of 0 words and are highlighted below:
additional   Anchor   and   are   as   As   at   attachment   avoid   backticks   based   bearing   Begin   beginning   blank   block   blocks   bold   braces   browsers   but   by   called   can   code   Code   codeexample   colorize   Colorize   Colorized   Colorizing   colors   comes   computers   configuration   containing   Contents   curly   default   describes   Double   Embed   enabled   end   especially   Example   example   Examples   extension   ffffcc   file   files   filled   For   for   format   Formatting   from   General   head   Hello   Help   highlight   Highlighting   http   If   ignored   import   in   inline   insert   inside   instruction   Instructions   internally   into   is   it   italic   larger   lessons   levels   linebreaks   lines   long   look   macro   Macros   macros   many   Markup   markup   math   might   Mix   Mixing   Moin   monospace   monospaced   more   multiple   name   Name   nest   Nesting   not   Notes   Of   of   On   on   one   only   or   org   other   out   page   palette   paragraphs   parser   parsername   Parsers   parsers   Placing   pointed   possible   preformatted   processing   Processing   produces   programming   properly   py   Pygments   pygments   python   quotes   recall   Result   rowbgcolor   Same   Sample   script   see   separate   several   single   Single   smaller   sometimes   sorts   source   special   Start   stroke   sub   Subscript   such   super   Superscript   supported   syntax   Syntax   syntaxes   Table   tables   Tables   take   test   text   texts   that   The   the   There   they   This   to   Triple   try   Typeface   underline   unless   Use   use   used   using   ways   which   wiki   Wiki   with   without   world   wrapped   You   you   your  

Clear message
location: HelpOnFormatting

Formatting

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 for inline monospaced text. If possible, try to avoid long monospaced texts, especially inside tables: sometimes they are not properly wrapped by the browsers. Wiki markup is ignored.

monospace

{{{monospace}}}

Same as backticks. Placing the braces in separate lines produces a code block.

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).

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.

MoinMoin comes with a special parser called highlight that is based on Pygments internally.

You can use it to highlight many sorts of programming source code, configuration files and other sorts of text files used on computers.

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

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.

Code blocks

Markup:

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

Result:

10 PRINT "Hello, world!"
20 GOTO 10

Nesting curly braces

As pointed out on HelpOnParsers, you can nest multiple levels of curly braces:

Markup:

{{{{ 
This is a preformatted text block.
{{{ with curly braces inside }}}
}}}}

Result:

This is a preformatted text block.
{{{ with curly braces inside }}}

Colorized Code

Markup:

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

Result:

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