V. Standard BBCode Library

[ Previous: A. Alphabetical BBCode List | Next: C. Links ]

B. Text Styles

[b]...[/b]
The [b] tag formats its contents using bold text. The ending [/b] tag is required.

[i]...[/i]
The [i] tag formats its contents using italic text. The ending [/i] tag is required.

[u]...[/u]
The [u] tag adds an underline to its contents. The ending [/u] tag is required.

[s]...[/s]
The [s] tag adds a strikeout to its contents. The ending [/s] tag is required.

[sup]...[/sup]
The [sup] tag formats its contents as superscript. The ending [/sup] tag is required.

[sub]...[/sub]
The [sub] tag formats its contents as subscript. The ending [/sub] tag is required.

[spoiler]...[/spoiler]
The [spoiler] tag formats its contents as a spoiler (select this text with your mouse to see the spoiler). The ending [/spoiler] tag is required.

[acronym="description"]keyword[/acronym]
The [acronym] tag provides a helpful mouseover for acronyms and other words where popup text can be helpful, like this: keyword. The ending [/acronym] tag is required.

[size=n]...[/size]
The [size] tag lets you control the size of your text:

This text is size 0 (tiny).
This text is size 1 (very small).
This text is size 2 (small).
This text is size 3 (normal).
This text is size 4 (large).
This text is size 5 (very large).
This text is size 6 (huge).
This text is size 7 (ridiculous).
The ending [/size] tag is required, and the size given must be a number from 0 to 7.

[color=n]...[/color]
The [color] tag allows you to control the text color. You can specify the color as either a three-digit hex code, like #069, or as a six-digit hex code, like #E34715, or as a standard HTML color name, like red. For example, [color=goldenrod]Shiny gold[/color] will appear as Shiny gold, and [color=#069]True blue![/color] will appear as True blue!

[font=n]...[/font]
The [font] tag allows you to alter the text's typeface. You may use specific font names, like Times New Roman, or generic font names, like cursive. Note that if you want to use a name that contains spaces, like Times New Roman, you should surround it in quotation marks, like this: [font="Times New Roman"]...[/font] NBBC will almost always get it right even if you don't use quotes, but quotes guarantee it'll be correct.

Note that the [font] tag allows you to separate font names with commas, just like CSS does, so that if a given font is not available, your choice of fallback fonts can be used instead: [font=Arial,Helv,Helvetica,sans]...[/font]

The [font] tag also recognizes the five standard CSS "generic" font names:

  • serif - A serifed font, like Times or Roman
  • sans-serif - A sans-serif font, like Helvetica or Arial (also sansserif, sans serif, and just sans)
  • cursive - A cursive font, like Zapf-Chancery
  • fantasy - A "fantasy" font, like Western
  • monospace - A fixed-width font, like Courier (also mono)

[ Previous: A. Alphabetical BBCode List | Next: C. Links ]


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