Skip to main content

Literals

Literals are useful when you want to quote text including tags and indentations, for example in a computer course.

Some literal code:

 

#include <stdio.h>

int main(void)
{
	printf("hello world\n");

	return 0;
}

 

To implement literal text apply the cgLiteral style.

The angled bracket characters (usually used as less than and greater than signs) have a special meaning when the document is exported to XML. Normally you have to prefix them with a tilde sign ( ~ ) but this is not necessary inside Literal formatting.