V. Standard BBCode Library

[ Previous: F. Columns | Next: H. Lists ]

G. Containers

[code]...[/code]
The [code] tag is designed for representing content from various programming languages without requiring use of special codes to display it. Every character between [code] and [/code] will be copied directly to the output, with whitespace including newlines and tabs, retained and preformatted. The only exception to this is that the first newline after the [code] tag will be removed, and the last newline before [/code] will be removed, just to keep the output from having wasted blank lines in it. The ending [/code] tag is required; without it, the start [code] tag will be ignored.

[quote]...[/quote]

[quote="John"]...[/quote]

[quote name="John"]...[/quote]

[quote name="John" date="July 4, 2008" url="http://www.foo.com"]...[/quote] The [quote] tag lets you copy someone else's BBCode and attribtue it to them. The [quote] tag comes in several different flavors, depending on how you want to quote them. In the first form, it attributes the quote to no-one specific:

Code:
[quote]A rolling stone gathers no moss.[/quote]
Output:
Quote:
A rolling stone gathers no moss.

In its second form, [quote] lets you identify who said something:

Code:
[quote=Thomas Jefferson]We hold these truths to be self-evident: That all men are created equal.[/quote]
Output:
Thomas Jefferson wrote:
We hold these truths to be self-evident:
That all men are created equal.

In its third form, [quote] lets you identify who said something, as well as optionally including the date they said it and a URL to where it can be found:

Code:
[quote name="Thomas Jefferson" date="July 4, 1776" url="http://www.ushistory.org/Declaration/document/index.htm"] We hold these truths to be self-evident: That all men are created equal.[/quote]
Output:
We hold these truths to be self-evident:
That all men are created equal.

The ending [/quote] tag is required.

[ Previous: F. Columns | Next: H. Lists ]


Copyright © 2010, the Phantom Inker. All rights reserved.