Code Example
As an example, the following RTF code:
{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard This is some {\b bold} text.\par }is a document which would be rendered like this when read by a program that supports RTF:
This is some bold text.
Braces ({
and }
) define a group; groups can be nested. A backslash (\
) starts an RTF control code. A valid RTF document is a group that starts with the \rtf
control code.
In the example above, the \b
control code invokes boldface type; the example uses a group to limit the scope of the boldface control code. All other text characters will be rendered as plain text. The \par
control code indicates the end of a paragraph.
Read more about this topic: Rich Text Format
Famous quotes containing the word code:
“... the self respect of individuals ought to make them demand of their leaders conformity with an agreed-upon code of ethics and moral conduct.”
—Mary Barnett Gilson (1877?)
“Wise Draco comes, deep in the midnight roll
Of black artillery; he comes, though late;
In code corroborating Calvins creed
And cynic tyrannies of honest kings;
He comes, nor parlies; and the Town, redeemed,
Gives thanks devout; nor, being thankful, heeds
The grimy slur on the Republics faith implied,
Which holds that Man is naturally good,
Andmoreis Natures Roman, never to be
scourged.”
—Herman Melville (18191891)