forked from Aupajo/human-markdown-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
131 lines (102 loc) · 3.38 KB
/
example.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Usage Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
<!--
body {
color: #333;
font: 10pt/1.6em Georgia, serif;
margin: 1em auto;
width: 740px;
}
a:link, a:visited {
color: #e2231b;
}
a:hover {
color: #f5c07;
}
a:active {
color: #910;
}
h1 {
font-size: 1.8em;
}
h2 {
font-size: 1.4em;
margin-top: 0;
}
code {
font: 0.9em Monaco, Courier, monospace;
}
.example {
background-color: #fffebd;
border: 1px solid #ffda78;
display: block;
padding: 1em;
margin-bottom: 2em;
}
.directory {
background-color: #eef;
padding: 0.2em;
}
.tag {
color: #c00;
}
.attribute {
color: #eb8422;
}
.value {
color: #456cb7;
}
.contents {
color: #080e21;
}
#shameless {
border-top: 1px dashed #ccc;
font-size: 0.9em;
color: #999;
padding-top: 2em;
text-align: center;
}
#shameless a {
color: #777;
}
-->
</style>
</head>
<body>
<h1>Usage Example</h1>
<h2>Instructions</h2>
<ol>
<li>Copy the <code class="directory">markdown-reference/</code> directory to your project.</li>
<li>Include a quick help link to the reference.</li>
</ol>
<h2>Example</h2>
<div class="example">
You can format your text using <a href="markdown-reference/index.html" onclick="window.open(this.href,'markdown_reference','height=400,width=600,scrollbars=1');return false;">Markdown</a>.
</div>
<h2>Code Snippets</h2>
<h3>HTML</h3>
<code class="example">
You can format your text using<br />
<span class="tag"><a
<span class="attribute">href=</span><span class="value">"markdown-reference/index.html"</span>
<span class="attribute">onclick=</span><span class="value">"window.open(this.href,'markdown_reference','height=400,width=600,scrollbars=1'); return false;"></span></span><span class="contents">Markdown</span><span class="tag"></a></span>.
</code>
<h3>Rails</h3>
<code class="example">
You can format your text using<br />
<span class="tag"><%= link_to <span class="attribute">'Markdown'</span>,
<span class="attribute">'markdown-reference/index.html'</span>,
<span class="attribute">:popup =></span>
[<span class="value">'markdown_reference'</span>,
<span class="value">'height=400,width=600,scrollbars=1'</span>]
%></span>
</code>
<p id="shameless">
Want to help out? Check out the <a href="http://github.com/Aupajo/human-markdown-reference/tree/master">repository on GitHub</a>!
</p>
</body>
</html>