Home Emphasizing text Tables Special characters
 The guide of UDO
 The syntax of UDO
 Emphasizing text

Source code

Lines that are part of a sourcecode environment will be displayed without conversion when converting to one of the source code formats. When converting to one of the other destination formats, these lines will be displayed like being part of a verbatim environment inside a quote environment.

A small example for a C source code with UDO:

!docinfo [program] Hello, world!
!docinfo [author]  Dirk Hagedorn

!begin_document

!node Hello, World
This program is just for demonstrating
the sourcecode environment.

!begin_sourcecode
#include <stdio.h>

int main ( void )
{
        printf("Hello, world!\n");

        return 0;
}
!end_sourcecode

!end_document

Another possibility to include source code is offered by the command !sinclude.


Copyright © www.udo-open-source.org
Last updated on November 5, 2006

Home Emphasizing text Tables Special characters