This repository has been archived by the owner on Jul 16, 2019. It is now read-only.
/
SYNTAX.html
226 lines (217 loc) · 8.65 KB
/
SYNTAX.html
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<h1>Available Syntax</h1>
<p>Here's a list of current syntax options. Notations are provided for PHP Extras syntax, Maruku syntax, GFM, and NAMP dialects. For most of these, you'll want to also check out the HTML source to see what's going on.</p>
<hr>
<h2>PHRASE EMPHASIS</h2>
<hr>
<p><em>italic</em> <strong>bold</strong><br><em>italic</em> <strong>bold</strong></p>
<h2>LINKS</h2>
<hr>
<p>Inline:
An <a href="http://url.com/" title="Title">example</a></p>
<p>Reference-style labels (titles are optional):
An <a href="http://example.com/" title="Title">example</a>. Then, anywhere<br>else in the doc, define the link:</p>
<h2>IMAGES</h2>
<hr>
<p>Inline (titles are optional):
<img src="http://gfhiryuu.tripod.com/random/green_dragon_sprite.gif" alt="alt text" title="Random image"></p>
<p>Reference-style:
<img src="http://upload.wikimedia.org/wikipedia/en/math/b/8/b/b8b4326ebb88870f8cc97ab3f59a0867.png" alt="alt text" title="Still, a random image"></p>
<h2>HEADERS</h2>
<hr>
<h1>Header 1</h1>
<h2>Header 2</h2>
<p>atx-style (closing #'s are optional):</p>
<h1>Header 1</h1>
<h2>Header 2</h2>
<h6>Header 6</h6>
<h2>LISTS</h2>
<hr>
<p>Ordered, without paragraphs:</p>
<ol>
<li>Eggs</li>
<li>Milk</li>
<li>Cheese</li>
<li>Anything</li>
</ol>
<p>Ordered, with paragraphs:</p>
<ol>
<li><p>Eggs</p>
<p>Preferrably brown</p>
</li>
<li><p>Milk</p>
<p>Wait, I am lactose intolerant</p>
</li>
<li>Cheese</li>
<li>Wait, Cheese?</li>
</ol>
<p>Unordered, with paragraphs:</p>
<ul>
<li><p>A list item.</p>
<p>With multiple paragraphs.</p>
</li>
<li><p>Bar</p>
</li>
</ul>
<p>You can nest them:</p>
<ul>
<li>Abacus<ul>
<li>A tool</li>
</ul>
</li>
<li>Banana<ol>
<li>Fruit</li>
<li>Gorilla snack<ul>
<li>(or, for monkeys)</li>
</ul>
</li>
<li>Yellow</li>
</ol>
</li>
<li>Camel</li>
</ul>
<h2>BLOCKQUOTES</h2>
<hr>
<blockquote>
<p>Email-style angle brackets
are used for blockquotes.</p>
<blockquote>
<p>And, they can be nested. </p>
</blockquote>
<h4>Headers in blockquotes</h4>
<ul>
<li>You can quote a list.</li>
<li>Like this.<ol>
<li>And nest one.</li>
</ol>
</li>
</ul>
</blockquote>
<h2>CODE SPANS</h2>
<hr>
<p><code><code></code> spans are delimited
by backticks.</p>
<p>You can include literal backticks
like <code> `this` </code>.</p>
<h2>PREFORMATTED CODE BLOCKS</h2>
<hr>
<p>Indent every line of a code block by at least 4 spaces or 1 tab.</p>
<p>This is a normal paragraph.</p>
<pre id="code-1"><code>This <span class="keyword">is</span> a preformatted
code <span class="keyword">block</span>.</code></pre>
<p>Code blocks can also be "fenced" by <code> ``` </code> (GitHub-Flavored-Markdown)</p>
<pre id="code-2"><code>console<span class="preprocessor">.log</span>(<span class="string">"flock yeah!"</span>)<span class="comment">;</span></code></pre>
<p>For extra awesome, add the name of a programming language to the first fence, in order to syntax highlight it.</p>
<pre id="code-3"><code class="language-perl">var <span class="keyword">x</span> = function () {
console.<span class="keyword">log</span>(<span class="string">"This actually has 'perl' as a tag!"</span>)
};</code></pre>
<pre class="demo" id="code-4"><code class="language-ruby"><span class="class"><span class="keyword">module</span> <span class="title">Test</span></span>
<span class="function"><span class="keyword">def</span> <span class="title">demo</span></span>
puts <span class="string">"This is testing the demo construction"</span>
<span class="keyword">end</span></code></pre>
<p>(Highlighting is enabled by default; you'll have to define your own CSS that matches the highlight-js notation, though, which this document does not do!)</p>
<h2>STRIKETHROUGH</h2>
<p>Hey, this is <del>terrible</del> great!</p>
<h2>HORIZONTAL RULES</h2>
<hr>
<p>Three or more dashes or asterisks:</p>
<hr>
<hr>
<hr>
<h2>MANUAL LINE BREAKS</h2>
<hr>
<p>End a line with two or more spaces:</p>
<p>Roses are red,<br>Violets are blue.</p>
<hr>
<h2>PUNCTUATION</h2>
<p>"check it out"
"</p>
<p>\"</p>
<p><code>"should not curl"</code></p>
<p><em>"Wow"</em></p>
<h2>TABLES (PHP Extras)</h2>
<hr>
<p>|a |b |c
|:---|---|---
|1 |2 |3</p>
<p>|a |b |c
|:--|:--:|:--
|1 |2 (or <em>two</em>) |[3]{: .threeClass}
|4 |5 | 6
{: #demo test="true"}</p>
<p>x |y |z
--|--|--
8 |9 |10
{: .table .table-striped .table-bordered .table-condensed}</p>
<p>Demonstrating alignment:</p>
<h2> right|left | center</h2>
<p>:|:-----|:------:
0001 | 2 (or <em>two</em>) | 003
4 | 0005 | 6</p>
<h2>DEFINITION LISTS (PHP Extras)</h2>
<h2>(sadly, broken)</h2>
<p>Apple
: Pomaceous fruit of plants of the genus Malus in the family Rosaceae.</p>
<ul>
<li>List in dl</li>
<li>Another <strong>item</strong><ul>
<li>Wait, one more !<br>{: .listStyle}
: Okay, back to another dd.</li>
</ul>
</li>
</ul>
<p>Orange
: The fruit of an evergreen tree of the genus Citrus.</p>
<pre id="code-5"><code class="language-python"><span class="keyword">print</span> <span class="string">"Testing yet again"</span></code></pre>
<pre id="code-6"><code>It<span class="attribute">'s</span> extremly hard <span class="keyword">to</span> come up <span class="keyword">with</span> make believe text.</code></pre>
<p>Pomegranate
: A deciduous shrub or small tree (Punica granatum), native to Asia and <em>widely cultivated</em> for its edible fruit.
Anyway, Blah blah blah.adsadsasd.</p>
<p>Term 1
: This is a definition with two paragraphs.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus.
: Second definition for term 1, also wrapped in a paragraph</p>
<pre id="code-7"><code><span class="title">because</span> <span class="keyword">of</span> the blank line preceding it. {: .test} </code></pre>
<p>{: #TestingIDHere}</p>
<h2>ATTRIBUTES (Maruku)</h2>
<p>{: #myid .myclass}</p>
<hr>
<p>Look <em>around</em>{: .class1} you! View [the source code!]{: .someclass .someclass2 vague="no"}
This whole area is covered in
attributes!
{: #bigBlock tutorial=yes}</p>
<p>Spans should be covered in <code>[ ]</code>, with the attribute list defined afterwards.</p>
<h2>AUTO-LINK</h2>
<hr>
<p><a href="http://foo.com/">http://foo.com/</a> </p>
<a href="mailto:foo@bar.com">foo@bar.com</a>
<h2>ENCODING</h2>
<hr>
<p>& < "aaa" &</p>
<h2>Twitter Bootstrap tags</h2>
<div class="alert alert-success"><h4 class="alert-heading">Note: </h4>This should be wrapped in a div that looks like this: <code><div class='alert alert-success'></code>.
</div>
<div class="alert alert-info"><h4 class="alert-heading">Tip: </h4>This should be wrapped in a div that looks like this: <code><div class='alert alert-info'></code>
</div>
<div class="alert alert-block"><h4 class="alert-heading">Warning: </h4>And <em>this</em> should be wrapped in a div like this: <code><div class='alert alert-block'></code>
</div>
<p>These classes have to do with Twitter Bootstrap stylings for <code>Note: </code>, <code>Tip: </code>, and <code>Warning: </code>.</p>
<h2>INLINE HTML</h2>
<hr>
<p>
HTML <em>should</em> be represented as is.<br>
<del>The <strong>quick brown fox</strong> jumps over the lazy dog.</del>
</p>
<div>
Regularly Markdown syntax ignored in HTML.<br><a href="http://www.google.co.jp/">Google</a>
</div>
<h2>Keybindings</h2>
<hr>
<p>To have fun, press: <kbd class="keyboard-key nowrap"><abbr title="Ctrl-Option-Down">˄-⌥-Down</abbr></kbd>. Or, you know, don't.</p>
<div class="alert alert-success"><h4 class="alert-heading">Note: </h4><kbd class="keyboard-key nowrap"><abbr title="Ctrl-K">˄-K</abbr></kbd>
</div>
<p><kbd class="keyboard-key nowrap"><abbr title="Command-X">⌘-X</abbr></kbd></p>
<p><em>Your Name</em>, Setup, Develop, Stuff</p>
<h2>Menus</h2>
<hr>
<p>Click <span class="menucascade"><span class="menuitem"><em><strong>Your Name</strong></em></span><span class='menudivider'> <strong>></strong> </span><span class='menuitem'><strong>Setup</strong></span><span class='menudivider'> <strong>></strong> </span><span class='menuitem'><strong>Develop</strong></span><span class='menudivider'> <strong>></strong> </span><span class='menuitem'><strong>Stuff</strong></span></span>. For Visualforce components, click <span class="menucascade"><span class="menuitem"><strong>Blah</strong></span><span class='menudivider'> <strong>></strong> </span><span class='menuitem'><strong>Setup</strong></span><span class='menudivider'> <strong>></strong> </span><span class='menuitem'><strong>Develop</strong></span><span class='menudivider'> <strong>></strong> </span><span class='menuitem'><strong>Components</strong></span></span>.</p>