In this example, we copy the predefined rule named QuotedText from the normals.wml file to a file named custom-rules.wml. The definition of the QuotedText rule is:
# QuotedText specifies that text be displayed as a BLOCKQUOTE,
# separated from text above and below by a blank line.
PARAGRAPH "QuotedText" TYPE Normal
{
CONTEXT Quote
ACTIONS
{
write(*,paragraph(text()));
}
}
We now edit the copy of the rule to have a new name, QuotedTextItalic, to have a revised comment that describes this new rule, and to use the italic WML function. The definition of the QuotedTextItalic rule is:
# QuotedTextItalic is like QuotedText, but displays in italics.
PARAGRAPH "QuotedTextItalic" TYPE Normal
{
CONTEXT Quote
ACTIONS
{
write(*,paragraph(italic(text())));
}
}