HomeText stylingTablesSpecial characters
User Manual UDO > The UDO syntax > Text styling Index

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 

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 (Contact)
Last updated on May 19, 2014

HomeText stylingTablesSpecial characters