Contents Horizontal line Tables The docx utility

6 Preformatted paragraphs

It is possible to specify that a paragraph is preformatted by placing the text between two lines which are not indented and which begin with at least 3 '-' (minus) characters.

This preformatted paragraph (typically source code) is rendered using a fixed-pitch font.

Example:

int main(int    argc,
         char*  argv[])
{
    puts("Hello MMMarvelous World!!!");
    return 0;
}

Note that borders are drawn around preformatted paragraphs if the sequence '+--' is used instead of sequence '---'.

Preformatted paragraph with borders may not be supported by all output formats.

Preformatted paragraphs are always displayed at current indentation level. Example:

Non nested line:


Non nested figure:

pixware

No caption.