Post Formatting Codes

October 23rd, 2012 at 12:00:00 AM permalink
JB
Administrator
Member since: Oct 23, 2012
Threads: 10
Posts: 111
Direct HTML is not allowed in your posts, however, the following formatting codes are available:

Fonts and Colors

Description Usage Example Input Example Output
Font Face [font=font_name]...[/font] [font=Times New Roman]Times New Roman[/font] Times New Roman
Font Size [size=pixels]...[/size] [size=18]18-pixel text[/size] 18-pixel text
Foreground Color [color=html_color*]...[/color] or [fg=html_color*]...[/fg] [color=#003366]dark blue text[/color] or [fg="firebrick"]firebrick[/fg] dark blue text or firebrick
Background Color [bg=html_color*]...[/bg] [bg=#FFFF00]highlighted yellow[/bg] highlighted yellow

* html_color can be an RGB literal (#RGB or #RRGGBB) or a named web color.

Links and Images

Description Usage Example Input Example Output
Link [link=URL]anchor_text[/link] [link=http://www.example.com/]Example[/link] Example
Image [img=URL] [img=/lisa.jpg]


Text Styles

Description Usage Example Input Example Output
Bold [b] ... [/b] [b]bold text[/b] bold text
Italic [i] ... [/i] [i]italic text[/i] italic text
Strikethrough [s] ... [/s] [s]strikethrough text[/s] strikethrough text
Underline [u] ... [/u] [u]underlined text[/u] underlined text


Text Alignment

Description Usage Example Input Example Output
Left [l] ... [/l] [l]left-aligned text[/l]
left-aligned text
Center [c] ... [/c] [c]centered text[/c]
centered text
Right [r] ... [/r] [r]right-aligned text[/r]
right-aligned text
Justify [j] ... [/j] [j]this text is justified, which means that the words on each line except the last are spaced so that both the left and right sides are aligned evenly[/j]
this text is justified, which means that the words on each line except the last are spaced so that both the left and right sides are aligned evenly
Superscript [sup] ... [/sup] This text is [sup]superscript[/sup] This text is superscript
Subscript [sub] ... [/sub] This text is [sub]subscript[/sub] This text is subscript


Blocks

Description Usage Example Input Example Output
Quote, method 1 [q] ... [/q] [q]quoted text[/q]
Quote:
quoted text
Quote, method 2 [q=origin] ... [/q] [q=Shakespeare]To be or not to be, that is the question[/q]
Quote: Shakespeare
To be or not to be, that is the question
Computer code [code] ... [/code] [code]Object.DoSomething();[/code]
Object.DoSomething();


Tables


Start with [table] and [/table].

Rows are added inside [table] tags using the [tr] and [/tr] tags.

Header cells are added inside [tr] tags using the [th] and [/th] tags.

Data cells are added inside [tr] tags using the [td] and [/td] tags.

Example Input


[table]

[tr]
[th]Header 1[/th]
[th]Header 2[/th]
[th]Header 3[/th]
[/tr]

[tr]
[td]Data value 1[/td]
[td]Data value 2[/td]
[td]Data value 3[/td]
[/tr]

[tr]
[td]Data value 4[/td]
[td]Data value 5[/td]
[td]Data value 6[/td]
[/tr]

[tr]
[td]Data value 7[/td]
[td]Data value 8[/td]
[td]Data value 9[/td]
[/tr]

[/table]


Example Output

Header 1 Header 2 Header 3
Data value 1 Data value 2 Data value 3
Data value 4 Data value 5 Data value 6
Data value 7 Data value 8 Data value 9


Lists


For a bulleted list, start with [blist] and [/blist].

For a numbered list, start with [nlist] and [/nlist].

Add items inside the list tags using [item] and [/item].

Example Input


[blist]
[item]Bulleted item 1[/item]
[item]Bulleted item 2[/item]
[item]Bulleted item 3[/item]
[/blist]

[nlist]
[item]Numbered item A[/item]
[item]Numbered item B[/item]
[item]Numbered item C[/item]
[/nlist]


Example Output


  • Bulleted item 1
  • Bulleted item 2
  • Bulleted item 3


  1. Numbered item A
  2. Numbered item B
  3. Numbered item C


Miscellaneous

To hide "spoiler" text, enclose it within [spoiler] and [/spoiler] tags.
This is an example of how the [spoiler] ... [/spoiler] tag works.

You can change the text shown on the button by specifying it like this: [spoiler=ButtonText]Spoiler text[/spoiler].
Spoiler text


An opening or closing bracket can be escaped by enclosing itself in brackets, such as [[] or []]. This is handy when you want to discuss one of the above tags, without having your text be parsed as tags.