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:
“Acknowledge your will and speak to us all, This alone is what I will to be! Hang your own penal code up above you: we want to be its enforcers!”
—Friedrich Nietzsche (18441900)
“Many people will say to working mothers, in effect, I dont think you can have it all. The phrase for have it all is code for have your cake and eat it too. What these people really mean is that achievement in the workplace has always come at a priceusually a significant personal price; conversely, women who stayed home with their children were seen as having sacrificed a great deal of their own ambition for their families.”
—Anne C. Weisberg (20th century)