-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbbcode_help.html
More file actions
113 lines (98 loc) · 4.96 KB
/
Copy pathbbcode_help.html
File metadata and controls
113 lines (98 loc) · 4.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>PostMarkup BBCode Usage Guide</title>
<link href="code.css" media="screen" rel="Stylesheet" type="text/css" />
<style type="text/css">
body { font-family: Arial, Helvetica, sans-serif; background: #ECF3F7; font-size: 90%; }
h1,h2,h3,h4,h5 { font-family: 'Trebuchet MS', Arial, sans-serif; }
td { background: #E1EBF2; }
</style>
</head>
<body>
<h1>PostMarkup BBCode Usage Guide</h1>
<hr />
<h2>Font and text formatting</h2>
<p>Use the following tags to create bold, italic, underline, and strikeout text.</p>
<div>
<table>
<tr><td><pre>[b]Bold[/b]</pre></td><td><strong>Bold</strong></td></tr>
<tr><td><pre>[i]Italic[/i]</pre></td><td><em>Italic</em></td></tr>
<tr><td><pre>[u]Underline[/u]</pre></td><td><u>Underline</u></td></tr>
<tr><td><pre>[s]Strikethrough[/s]</pre></td><td><strike>Strikethrough</strike></td></tr>
</table>
</div>
<hr />
<h2>Links</h2>
<p>You can link to another page or site using either the <tt>link</tt> or <tt>url</tt> tags. To link a section of text to another page put the URL as a parameter in the tag.</p>
<div>
<table>
<tr><td><pre>[url]http://www.google.com[/url]</pre></td><td><a href="http://www.google.com">http://www.google.com</a> [google.com]</td></tr>
<tr><td><pre>[url=http://en.wikipedia.org/]Wikipedia, the free encyclopedia.[/url]</pre></td><td><a href="http://en.wikipedia.org/">Wikipedia, the free encyclopedia.</a> [en.wikipedia.org]</td></tr>
</table>
</div>
<hr />
<h2>Images</h2>
<p>To insert images use the <tt>img</tt> tag. You can also nest an <tt>img</tt> tag inside of a <tt>url</tt> tag to link an image.</p>
<div>
<table>
<tr><td><pre>[img]http://www.google.com/intl/en_ALL/images/logo.gif[/img]</pre></td><td><img src="http://www.google.com/intl/en_ALL/images/logo.gif"></img><div style="display:none">http://www.google.com/intl/en_ALL/images/logo.gif</div></td></tr>
</table>
</div>
<hr />
<h2>Quoting</h2>
<p>Use the <tt>quote</tt> tag to quote another person's text. You can optionally provide a reference.</p>
<div>
<table>
<tr><td><pre>[quote]Hello world![/quote]</pre></td><td><blockquote><em></em><br/>Hello world!</blockquote></td></tr>
<tr><td><pre>[quote="Epimenides"]The Cretans are always liars.[/quote]</pre></td><td><blockquote><em>Epimenides</em><br/>The Cretans are always liars.</blockquote></td></tr>
</table>
</div>
<hr />
<h2>Lists</h2>
<p>Lists can be created using the <tt>list</tt> and <tt>*</tt> tags. You can change the style of the list by providing an optional parameter (<tt>1</tt> for numerical, <tt>a</tt> for lower-case alphabetical, <tt>A</tt> for upper-case alphabetical).</p>
<div>
<table>
<tr><td><pre>[list]
[*]Default item 1
[*]Default item 2
[/list]</pre></td><td><ul><br/><li>Default item 1<br/></li><li>Default item 2<br/></li></ul></td></tr>
<tr><td><pre>[list=1]
[*]Numbered item 1
[*]Numbered item 2
[/list]</pre></td><td><ol><br/><li>Numbered item 1<br/></li><li>Numbered item 2<br/></li></ol></td></tr>
<tr><td><pre>[list=a]
[*]Alphabetical item 1
[*]Alphabetical item 2
[/list]</pre></td><td><ol style="list-style-type: lower-alpha;"><br/><li>Alphabetical item 1<br/></li><li>Alphabetical item 2<br/></li></ol></td></tr>
</table>
</div>
<hr />
<h2>Code formatting</h2>
<p>The <tt>code</tt> tag is used to format source code or other text data. You can optionally specify a language to activate syntax highlighting for that language (if available).</p>
<div>
<table>
<tr><td><pre>[code]This text will be monospaced.[/code]</pre></td><td><div style="code"><pre>This text will be monospaced.</pre></div><div style='display:none'>This text will be monospaced.</div></td></tr>
<tr><td><pre>[code=python]
def main():
print "This is some Python code"
[/code]</pre></td><td><div class="code"><pre><span class="k">def</span> <span class="nf">main</span><span class="p">():</span>
<span class="k">print</span> <span class="s">"This is some Python code"</span>
</pre></div>
<div style='display:none'><br/>def main():<br/> print "This is some Python code"<br/></div></td></tr>
</table>
</div>
<hr />
<h2>Search engines and reference sites</h2>
<p>Use these special tags to link to a search engine query or reference site.</p>
<div>
<table>
<tr><td><pre>[google]bbcode[/google]</pre></td><td><a href="http://www.google.com/search?hl=en&q=bbcode&btnG=Google+Search">bbcode</a> [google.com]</td></tr>
<tr><td><pre>[dictionary]markup[/dictionary] or [dict]markup[/dict]</pre></td><td><a href="http://dictionary.reference.com/browse/markup">markup</a> [dictionary.com] or <a href="http://dictionary.reference.com/browse/markup">markup</a> [dictionary.com]</td></tr>
<tr><td><pre>[wiki]BBCode[/wiki]</pre></td><td><a href="http://en.wikipedia.org/wiki/Special:Search?search=BBCode">BBCode</a> [wikipedia.com]</td></tr>
</table>
</div>
<hr />
</body>
</html>