kitabu 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +7 -5
  5. data/lib/kitabu.rb +12 -1
  6. data/lib/kitabu/cli.rb +1 -1
  7. data/lib/kitabu/exporter.rb +5 -5
  8. data/lib/kitabu/{parser.rb → exporter/base.rb} +9 -11
  9. data/lib/kitabu/exporter/css.rb +24 -0
  10. data/lib/kitabu/{parser → exporter}/epub.rb +2 -2
  11. data/lib/kitabu/exporter/html.rb +109 -0
  12. data/lib/kitabu/{parser → exporter}/mobi.rb +2 -2
  13. data/lib/kitabu/exporter/pdf.rb +43 -0
  14. data/lib/kitabu/{parser → exporter}/txt.rb +2 -2
  15. data/lib/kitabu/footnotes/base.rb +33 -0
  16. data/lib/kitabu/footnotes/html.rb +52 -0
  17. data/lib/kitabu/footnotes/pdf.rb +47 -0
  18. data/lib/kitabu/source_list.rb +73 -0
  19. data/lib/kitabu/stats.rb +1 -1
  20. data/lib/kitabu/stream.rb +1 -1
  21. data/lib/kitabu/toc/html.rb +6 -6
  22. data/lib/kitabu/version.rb +1 -1
  23. data/spec/kitabu/exporter/css_spec.rb +16 -0
  24. data/spec/kitabu/{parser → exporter}/epub_spec.rb +3 -3
  25. data/spec/kitabu/exporter/html_spec.rb +36 -0
  26. data/spec/kitabu/{parser → exporter}/mobi_spec.rb +3 -3
  27. data/spec/kitabu/{parser → exporter}/pdf_spec.rb +3 -3
  28. data/spec/kitabu/{parser → exporter}/txt_spec.rb +3 -3
  29. data/spec/kitabu/footnotes/html_spec.rb +67 -0
  30. data/spec/kitabu/{parser/html_spec.rb → source_list_spec.rb} +5 -34
  31. data/spec/kitabu/stats_spec.rb +7 -7
  32. data/templates/templates/styles/pdf.scss +1 -47
  33. data/templates/text/04_Dynamic_Content.erb +1 -1
  34. metadata +29 -54
  35. data/examples/kitabu/output/epub/images/.gitkeep +0 -0
  36. data/examples/kitabu/output/epub/images/kitabu-icon.png +0 -0
  37. data/examples/kitabu/output/epub/images/kitabu-icon.svg +0 -19
  38. data/examples/kitabu/output/epub/images/kitabu-word.png +0 -0
  39. data/examples/kitabu/output/epub/images/kitabu-word.svg +0 -14
  40. data/examples/kitabu/output/epub/images/kitabu.png +0 -0
  41. data/examples/kitabu/output/epub/images/kitabu.svg +0 -20
  42. data/examples/kitabu/output/epub/section_0.html +0 -266
  43. data/examples/kitabu/output/epub/section_1.html +0 -246
  44. data/examples/kitabu/output/epub/section_2.html +0 -520
  45. data/examples/kitabu/output/epub/section_3.html +0 -282
  46. data/examples/kitabu/output/epub/section_4.html +0 -276
  47. data/examples/kitabu/output/epub/styles/epub.css +0 -437
  48. data/examples/kitabu/output/epub/styles/html.css +0 -712
  49. data/examples/kitabu/output/epub/styles/pdf.css +0 -840
  50. data/examples/kitabu/output/epub/styles/print.css +0 -1278
  51. data/examples/kitabu/output/epub/toc.html +0 -37
  52. data/examples/kitabu/output/images/.gitkeep +0 -0
  53. data/examples/kitabu/output/images/kitabu-icon.png +0 -0
  54. data/examples/kitabu/output/images/kitabu-icon.svg +0 -19
  55. data/examples/kitabu/output/images/kitabu-word.png +0 -0
  56. data/examples/kitabu/output/images/kitabu-word.svg +0 -14
  57. data/examples/kitabu/output/images/kitabu.png +0 -0
  58. data/examples/kitabu/output/images/kitabu.svg +0 -20
  59. data/examples/kitabu/output/kitabu.epub +0 -0
  60. data/examples/kitabu/output/kitabu.html +0 -513
  61. data/examples/kitabu/output/kitabu.mobi +0 -0
  62. data/examples/kitabu/output/kitabu.pdf +0 -0
  63. data/examples/kitabu/output/kitabu.pdf.html +0 -729
  64. data/examples/kitabu/output/kitabu.print.html +0 -729
  65. data/examples/kitabu/output/kitabu.print.pdf +0 -0
  66. data/examples/kitabu/output/kitabu.txt +0 -440
  67. data/examples/kitabu/output/styles/epub.css +0 -437
  68. data/examples/kitabu/output/styles/html.css +0 -712
  69. data/examples/kitabu/output/styles/pdf.css +0 -840
  70. data/examples/kitabu/output/styles/print.css +0 -1278
  71. data/lib/kitabu/parser/html.rb +0 -208
  72. data/lib/kitabu/parser/pdf.rb +0 -88
@@ -1,246 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
- <html class="epub" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4
- <head>
5
- <title></title>
6
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
7
- <link name="stylesheet" rel="stylesheet" type="text/css" href="styles/epub.css" />
8
- <style type="text/css">.highlight table td { padding: 5px; }
9
- .highlight table pre { margin: 0; }
10
- .highlight .cm {
11
- color: #999988;
12
- font-style: italic;
13
- }
14
- .highlight .cp {
15
- color: #999999;
16
- font-weight: bold;
17
- }
18
- .highlight .c1 {
19
- color: #999988;
20
- font-style: italic;
21
- }
22
- .highlight .cs {
23
- color: #999999;
24
- font-weight: bold;
25
- font-style: italic;
26
- }
27
- .highlight .c, .highlight .cd {
28
- color: #999988;
29
- font-style: italic;
30
- }
31
- .highlight .err {
32
- color: #a61717;
33
- background-color: #e3d2d2;
34
- }
35
- .highlight .gd {
36
- color: #000000;
37
- background-color: #ffdddd;
38
- }
39
- .highlight .ge {
40
- color: #000000;
41
- font-style: italic;
42
- }
43
- .highlight .gr {
44
- color: #aa0000;
45
- }
46
- .highlight .gh {
47
- color: #999999;
48
- }
49
- .highlight .gi {
50
- color: #000000;
51
- background-color: #ddffdd;
52
- }
53
- .highlight .go {
54
- color: #888888;
55
- }
56
- .highlight .gp {
57
- color: #555555;
58
- }
59
- .highlight .gs {
60
- font-weight: bold;
61
- }
62
- .highlight .gu {
63
- color: #aaaaaa;
64
- }
65
- .highlight .gt {
66
- color: #aa0000;
67
- }
68
- .highlight .kc {
69
- color: #000000;
70
- font-weight: bold;
71
- }
72
- .highlight .kd {
73
- color: #000000;
74
- font-weight: bold;
75
- }
76
- .highlight .kn {
77
- color: #000000;
78
- font-weight: bold;
79
- }
80
- .highlight .kp {
81
- color: #000000;
82
- font-weight: bold;
83
- }
84
- .highlight .kr {
85
- color: #000000;
86
- font-weight: bold;
87
- }
88
- .highlight .kt {
89
- color: #445588;
90
- font-weight: bold;
91
- }
92
- .highlight .k, .highlight .kv {
93
- color: #000000;
94
- font-weight: bold;
95
- }
96
- .highlight .mf {
97
- color: #009999;
98
- }
99
- .highlight .mh {
100
- color: #009999;
101
- }
102
- .highlight .il {
103
- color: #009999;
104
- }
105
- .highlight .mi {
106
- color: #009999;
107
- }
108
- .highlight .mo {
109
- color: #009999;
110
- }
111
- .highlight .m, .highlight .mb, .highlight .mx {
112
- color: #009999;
113
- }
114
- .highlight .sb {
115
- color: #d14;
116
- }
117
- .highlight .sc {
118
- color: #d14;
119
- }
120
- .highlight .sd {
121
- color: #d14;
122
- }
123
- .highlight .s2 {
124
- color: #d14;
125
- }
126
- .highlight .se {
127
- color: #d14;
128
- }
129
- .highlight .sh {
130
- color: #d14;
131
- }
132
- .highlight .si {
133
- color: #d14;
134
- }
135
- .highlight .sx {
136
- color: #d14;
137
- }
138
- .highlight .sr {
139
- color: #009926;
140
- }
141
- .highlight .s1 {
142
- color: #d14;
143
- }
144
- .highlight .ss {
145
- color: #990073;
146
- }
147
- .highlight .s {
148
- color: #d14;
149
- }
150
- .highlight .na {
151
- color: #008080;
152
- }
153
- .highlight .bp {
154
- color: #999999;
155
- }
156
- .highlight .nb {
157
- color: #0086B3;
158
- }
159
- .highlight .nc {
160
- color: #445588;
161
- font-weight: bold;
162
- }
163
- .highlight .no {
164
- color: #008080;
165
- }
166
- .highlight .nd {
167
- color: #3c5d5d;
168
- font-weight: bold;
169
- }
170
- .highlight .ni {
171
- color: #800080;
172
- }
173
- .highlight .ne {
174
- color: #990000;
175
- font-weight: bold;
176
- }
177
- .highlight .nf {
178
- color: #990000;
179
- font-weight: bold;
180
- }
181
- .highlight .nl {
182
- color: #990000;
183
- font-weight: bold;
184
- }
185
- .highlight .nn {
186
- color: #555555;
187
- }
188
- .highlight .nt {
189
- color: #000080;
190
- }
191
- .highlight .vc {
192
- color: #008080;
193
- }
194
- .highlight .vg {
195
- color: #008080;
196
- }
197
- .highlight .vi {
198
- color: #008080;
199
- }
200
- .highlight .nv {
201
- color: #008080;
202
- }
203
- .highlight .ow {
204
- color: #000000;
205
- font-weight: bold;
206
- }
207
- .highlight .o {
208
- color: #000000;
209
- font-weight: bold;
210
- }
211
- .highlight .w {
212
- color: #bbbbbb;
213
- }
214
- .highlight {
215
- background-color: #f8f8f8;
216
- }</style>
217
- </head>
218
-
219
- <body>
220
- <div class="chapter">
221
- <h2 id="creating-chapters">Creating Chapters</h2>
222
-
223
- <p>You can create chapters by having multiple files or directories. They’re alphabetically sorted, so make sure you use a prefixed file name like <code>01_Introduction.md</code> as the file name.</p>
224
-
225
- <p>If you’re going to write a long book, make sure you use the directory organization. This way you can have smaller text files, which will be easier to read and change as you go. A file structure suggestion for a book about <a href="http://guides.rubyonrails.com">Ruby on Rails</a> would be:</p>
226
- <pre class="highlight plaintext"><code>getting-started-with-rails
227
- ├── text
228
-    └── 01_Guide_Assumptions.md
229
-    └── 02_Whats_Rails.md
230
-    └── 03_Creating_A_New_Project
231
-    └── 01_Installing_Rails.md
232
-    └── 02_Creating_The_Blog_Application.md
233
-    └── 04_Hello_Rails
234
-    └── 01_Starting_Up_The_Web_Server.md
235
-    └── 02_Say_Hello_Rails.md
236
-    └── 03_Setting_The_Application_Home_Page.md
237
-    └── ...
238
- </code></pre>
239
-
240
- <p>Notice that the file name does not need to be readable, but it will make your life easier.</p>
241
-
242
-
243
-
244
- </div>
245
- </body>
246
- </html>
@@ -1,520 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
- <html class="epub" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4
- <head>
5
- <title></title>
6
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
7
- <link name="stylesheet" rel="stylesheet" type="text/css" href="styles/epub.css" />
8
- <style type="text/css">.highlight table td { padding: 5px; }
9
- .highlight table pre { margin: 0; }
10
- .highlight .cm {
11
- color: #999988;
12
- font-style: italic;
13
- }
14
- .highlight .cp {
15
- color: #999999;
16
- font-weight: bold;
17
- }
18
- .highlight .c1 {
19
- color: #999988;
20
- font-style: italic;
21
- }
22
- .highlight .cs {
23
- color: #999999;
24
- font-weight: bold;
25
- font-style: italic;
26
- }
27
- .highlight .c, .highlight .cd {
28
- color: #999988;
29
- font-style: italic;
30
- }
31
- .highlight .err {
32
- color: #a61717;
33
- background-color: #e3d2d2;
34
- }
35
- .highlight .gd {
36
- color: #000000;
37
- background-color: #ffdddd;
38
- }
39
- .highlight .ge {
40
- color: #000000;
41
- font-style: italic;
42
- }
43
- .highlight .gr {
44
- color: #aa0000;
45
- }
46
- .highlight .gh {
47
- color: #999999;
48
- }
49
- .highlight .gi {
50
- color: #000000;
51
- background-color: #ddffdd;
52
- }
53
- .highlight .go {
54
- color: #888888;
55
- }
56
- .highlight .gp {
57
- color: #555555;
58
- }
59
- .highlight .gs {
60
- font-weight: bold;
61
- }
62
- .highlight .gu {
63
- color: #aaaaaa;
64
- }
65
- .highlight .gt {
66
- color: #aa0000;
67
- }
68
- .highlight .kc {
69
- color: #000000;
70
- font-weight: bold;
71
- }
72
- .highlight .kd {
73
- color: #000000;
74
- font-weight: bold;
75
- }
76
- .highlight .kn {
77
- color: #000000;
78
- font-weight: bold;
79
- }
80
- .highlight .kp {
81
- color: #000000;
82
- font-weight: bold;
83
- }
84
- .highlight .kr {
85
- color: #000000;
86
- font-weight: bold;
87
- }
88
- .highlight .kt {
89
- color: #445588;
90
- font-weight: bold;
91
- }
92
- .highlight .k, .highlight .kv {
93
- color: #000000;
94
- font-weight: bold;
95
- }
96
- .highlight .mf {
97
- color: #009999;
98
- }
99
- .highlight .mh {
100
- color: #009999;
101
- }
102
- .highlight .il {
103
- color: #009999;
104
- }
105
- .highlight .mi {
106
- color: #009999;
107
- }
108
- .highlight .mo {
109
- color: #009999;
110
- }
111
- .highlight .m, .highlight .mb, .highlight .mx {
112
- color: #009999;
113
- }
114
- .highlight .sb {
115
- color: #d14;
116
- }
117
- .highlight .sc {
118
- color: #d14;
119
- }
120
- .highlight .sd {
121
- color: #d14;
122
- }
123
- .highlight .s2 {
124
- color: #d14;
125
- }
126
- .highlight .se {
127
- color: #d14;
128
- }
129
- .highlight .sh {
130
- color: #d14;
131
- }
132
- .highlight .si {
133
- color: #d14;
134
- }
135
- .highlight .sx {
136
- color: #d14;
137
- }
138
- .highlight .sr {
139
- color: #009926;
140
- }
141
- .highlight .s1 {
142
- color: #d14;
143
- }
144
- .highlight .ss {
145
- color: #990073;
146
- }
147
- .highlight .s {
148
- color: #d14;
149
- }
150
- .highlight .na {
151
- color: #008080;
152
- }
153
- .highlight .bp {
154
- color: #999999;
155
- }
156
- .highlight .nb {
157
- color: #0086B3;
158
- }
159
- .highlight .nc {
160
- color: #445588;
161
- font-weight: bold;
162
- }
163
- .highlight .no {
164
- color: #008080;
165
- }
166
- .highlight .nd {
167
- color: #3c5d5d;
168
- font-weight: bold;
169
- }
170
- .highlight .ni {
171
- color: #800080;
172
- }
173
- .highlight .ne {
174
- color: #990000;
175
- font-weight: bold;
176
- }
177
- .highlight .nf {
178
- color: #990000;
179
- font-weight: bold;
180
- }
181
- .highlight .nl {
182
- color: #990000;
183
- font-weight: bold;
184
- }
185
- .highlight .nn {
186
- color: #555555;
187
- }
188
- .highlight .nt {
189
- color: #000080;
190
- }
191
- .highlight .vc {
192
- color: #008080;
193
- }
194
- .highlight .vg {
195
- color: #008080;
196
- }
197
- .highlight .vi {
198
- color: #008080;
199
- }
200
- .highlight .nv {
201
- color: #008080;
202
- }
203
- .highlight .ow {
204
- color: #000000;
205
- font-weight: bold;
206
- }
207
- .highlight .o {
208
- color: #000000;
209
- font-weight: bold;
210
- }
211
- .highlight .w {
212
- color: #bbbbbb;
213
- }
214
- .highlight {
215
- background-color: #f8f8f8;
216
- }</style>
217
- </head>
218
-
219
- <body>
220
- <div class="chapter">
221
- <h2 id="syntax-highlighting">Syntax Highlighting</h2>
222
-
223
- <h3 id="what-about-the-syntax">What about the syntax</h3>
224
-
225
- <p>Kitabu uses <a href="http://rubygems.org/gems/rouge">Route</a> as the syntax highlight formatter. It emits an output compatible with stylesheets designed for <a href="https://pygments.org">pygments</a>, the Python library used by many.</p>
226
-
227
- <p>To highlight a code block, use the fenced block syntax. The following example would be formatted as Ruby.</p>
228
- <pre class="highlight plaintext"><code>```ruby
229
- class User
230
- attr_accessor :name, :email
231
-
232
- def initialize(name, email)
233
- @name = name
234
- @email = email
235
- end
236
- end
237
- ```
238
- </code></pre>
239
-
240
- <p>The output would be something like this:</p>
241
- <pre class="highlight ruby"><code><span class="k">class</span> <span class="nc">User</span>
242
- <span class="kp">attr_accessor</span> <span class="ss">:name</span><span class="p">,</span> <span class="ss">:email</span>
243
-
244
- <span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">,</span> <span class="n">email</span><span class="p">)</span>
245
- <span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span>
246
- <span class="vi">@email</span> <span class="o">=</span> <span class="n">email</span>
247
- <span class="k">end</span>
248
- <span class="k">end</span>
249
- </code></pre>
250
-
251
- <div class="note info">
252
- <p>If you’re using Sublime Text, make sure you install the <a href="https://packagecontrol.io/packages/Markdown%20Extended">Markdown Extended</a> plugin; it enables code syntax highlighting on your Markdown files.</p>
253
- </div>
254
-
255
- <p>You can also provide inline options such as line numbers and inline rendering.</p>
256
- <pre class="highlight plaintext"><code>```ruby?line_numbers=1
257
- class User
258
- attr_accessor :name, :email
259
-
260
- def initialize(name, email)
261
- @name = name
262
- @email = email
263
- end
264
- end
265
- ```
266
- </code></pre>
267
-
268
- <p>This would be rendered like this:</p>
269
- <div class="highlight ruby">
270
- <table style="border-spacing: 0"><tbody><tr>
271
- <td class="gutter gl" style="text-align: right"><pre class="lineno">1
272
- 2
273
- 3
274
- 4
275
- 5
276
- 6
277
- 7
278
- 8</pre></td>
279
- <td class="code"><pre><span class="k">class</span> <span class="nc">User</span>
280
- <span class="kp">attr_accessor</span> <span class="ss">:name</span><span class="p">,</span> <span class="ss">:email</span>
281
-
282
- <span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="nb">name</span><span class="p">,</span> <span class="n">email</span><span class="p">)</span>
283
- <span class="vi">@name</span> <span class="o">=</span> <span class="nb">name</span>
284
- <span class="vi">@email</span> <span class="o">=</span> <span class="n">email</span>
285
- <span class="k">end</span>
286
- <span class="k">end</span>
287
- </pre></td>
288
- </tr></tbody></table>
289
- </div>
290
-
291
- <h3 id="lexers">Lexers</h3>
292
-
293
- <p>Rouge comes with dozens of lexers. Check out this list, generated dynamically when you export your e-book.</p>
294
-
295
- <ul class="lexers-list">
296
- <li>
297
- <strong>Apache</strong> <code>apache</code><br /><span>configuration files for Apache web server</span>
298
- </li>
299
- <li>
300
- <strong>AppleScript</strong> <code>applescript</code><br /><span>The AppleScript scripting language by Apple Inc. (http://developer.apple.com/applescript/)</span>
301
- </li>
302
- <li>
303
- <strong>C</strong> <code>c</code><br /><span>The C programming language</span>
304
- </li>
305
- <li>
306
- <strong>Clojure</strong> <code>clojure</code><br /><span>The Clojure programming language (clojure.org)</span>
307
- </li>
308
- <li>
309
- <strong>CoffeeScript</strong> <code>coffeescript</code><br /><span>The Coffeescript programming language (coffeescript.org)</span>
310
- </li>
311
- <li>
312
- <strong>Common Lisp</strong> <code>common_lisp</code><br /><span>The Common Lisp variant of Lisp (common-lisp.net)</span>
313
- </li>
314
- <li>
315
- <strong>Config File</strong> <code>conf</code><br /><span>A generic lexer for configuration files</span>
316
- </li>
317
- <li>
318
- <strong>C++</strong> <code>cpp</code><br /><span>The C++ programming language</span>
319
- </li>
320
- <li>
321
- <strong>C#</strong> <code>csharp</code><br /><span>a multi-paradigm language targeting .NET</span>
322
- </li>
323
- <li>
324
- <strong>CSS</strong> <code>css</code><br /><span>Cascading Style Sheets, used to style web pages</span>
325
- </li>
326
- <li>
327
- <strong>Dart</strong> <code>dart</code><br /><span>The Dart programming language (dartlang.com)</span>
328
- </li>
329
- <li>
330
- <strong>diff</strong> <code>diff</code><br /><span>Lexes unified diffs or patches</span>
331
- </li>
332
- <li>
333
- <strong>Elixir</strong> <code>elixir</code><br /><span>Elixir language (elixir-lang.org)</span>
334
- </li>
335
- <li>
336
- <strong>ERB</strong> <code>erb</code><br /><span>Embedded ruby template files</span>
337
- </li>
338
- <li>
339
- <strong>Erlang</strong> <code>erlang</code><br /><span>The Erlang programming language (erlang.org)</span>
340
- </li>
341
- <li>
342
- <strong>Factor</strong> <code>factor</code><br /><span>Factor, the practical stack language (factorcode.org)</span>
343
- </li>
344
- <li>
345
- <strong>Gherkin</strong> <code>gherkin</code><br /><span>A business-readable spec DSL ( github.com/cucumber/cucumber/wiki/Gherkin )</span>
346
- </li>
347
- <li>
348
- <strong>Go</strong> <code>go</code><br /><span>The Go programming language (http://golang.org)</span>
349
- </li>
350
- <li>
351
- <strong>Groovy</strong> <code>groovy</code><br /><span>The Groovy programming language (groovy.codehaus.org)</span>
352
- </li>
353
- <li>
354
- <strong>Haml</strong> <code>haml</code><br /><span>The Haml templating system for Ruby (haml.info)</span>
355
- </li>
356
- <li>
357
- <strong>Handlebars</strong> <code>handlebars</code><br /><span>the Handlebars and Mustache templating languages</span>
358
- </li>
359
- <li>
360
- <strong>Haskell</strong> <code>haskell</code><br /><span>The Haskell programming language (haskell.org)</span>
361
- </li>
362
- <li>
363
- <strong>HTML</strong> <code>html</code><br /><span>HTML, the markup language of the web</span>
364
- </li>
365
- <li>
366
- <strong>HTTP</strong> <code>http</code><br /><span>http requests and responses</span>
367
- </li>
368
- <li>
369
- <strong>INI</strong> <code>ini</code><br /><span>the INI configuration format</span>
370
- </li>
371
- <li>
372
- <strong>Io</strong> <code>io</code><br /><span>The IO programming language (http://iolanguage.com)</span>
373
- </li>
374
- <li>
375
- <strong>Java</strong> <code>java</code><br /><span>The Java programming language (java.com)</span>
376
- </li>
377
- <li>
378
- <strong>JavaScript</strong> <code>javascript</code><br /><span>JavaScript, the browser scripting language</span>
379
- </li>
380
- <li>
381
- <strong>Json</strong> <code>json</code><br /><span>JavaScript Object Notation (json.org)</span>
382
- </li>
383
- <li>
384
- <strong>Liquid</strong> <code>liquid</code><br /><span>Liquid is a templating engine for Ruby (liquidmarkup.org)</span>
385
- </li>
386
- <li>
387
- <strong>Literate CoffeeScript</strong> <code>literate_coffeescript</code><br /><span>Literate coffeescript</span>
388
- </li>
389
- <li>
390
- <strong>Literate Haskell</strong> <code>literate_haskell</code><br /><span>Literate haskell</span>
391
- </li>
392
- <li>
393
- <strong>LLVM</strong> <code>llvm</code><br /><span>The LLVM Compiler Infrastructure (http://llvm.org/)</span>
394
- </li>
395
- <li>
396
- <strong>Lua</strong> <code>lua</code><br /><span>Lua (http://www.lua.org)</span>
397
- </li>
398
- <li>
399
- <strong>Make</strong> <code>make</code><br /><span>Makefile syntax</span>
400
- </li>
401
- <li>
402
- <strong>Markdown</strong> <code>markdown</code><br /><span>Markdown, a light-weight markup language for authors</span>
403
- </li>
404
- <li>
405
- <strong>MATLAB</strong> <code>matlab</code><br /><span>Matlab</span>
406
- </li>
407
- <li>
408
- <strong>MoonScript</strong> <code>moonscript</code><br /><span>Moonscript (http://www.moonscript.org)</span>
409
- </li>
410
- <li>
411
- <strong>nginx</strong> <code>nginx</code><br /><span>configuration files for the nginx web server (nginx.org)</span>
412
- </li>
413
- <li>
414
- <strong>Nim</strong> <code>nim</code><br /><span>The Nim programming language (http://nim-lang.org/)</span>
415
- </li>
416
- <li>
417
- <strong>Objective-C</strong> <code>objective_c</code><br /><span>an extension of C commonly used to write Apple software</span>
418
- </li>
419
- <li>
420
- <strong>OCaml</strong> <code>ocaml</code><br /><span>Objective CAML (ocaml.org)</span>
421
- </li>
422
- <li>
423
- <strong>Perl</strong> <code>perl</code><br /><span>The Perl scripting language (perl.org)</span>
424
- </li>
425
- <li>
426
- <strong>PHP</strong> <code>php</code><br /><span>The PHP scripting language (php.net)</span>
427
- </li>
428
- <li>
429
- <strong>Plain Text</strong> <code>plaintext</code><br /><span>A boring lexer that doesn’t highlight anything</span>
430
- </li>
431
- <li>
432
- <strong>Prolog</strong> <code>prolog</code><br /><span>The Prolog programming language (http://en.wikipedia.org/wiki/Prolog)</span>
433
- </li>
434
- <li>
435
- <strong>.properties</strong> <code>properties</code><br /><span>.properties config files for Java</span>
436
- </li>
437
- <li>
438
- <strong>Puppet</strong> <code>puppet</code><br /><span>The Puppet configuration management language (puppetlabs.org)</span>
439
- </li>
440
- <li>
441
- <strong>Python</strong> <code>python</code><br /><span>The Python programming language (python.org)</span>
442
- </li>
443
- <li>
444
- <strong>QML</strong> <code>qml</code><br /><span>QML, a UI markup language</span>
445
- </li>
446
- <li>
447
- <strong>R</strong> <code>r</code><br /><span>The R statistics language (r-project.org)</span>
448
- </li>
449
- <li>
450
- <strong>Racket</strong> <code>racket</code><br /><span>Racket is a Lisp descended from Scheme (racket-lang.org)</span>
451
- </li>
452
- <li>
453
- <strong>Ruby</strong> <code>ruby</code><br /><span>The Ruby programming language (ruby-lang.org)</span>
454
- </li>
455
- <li>
456
- <strong>Rust</strong> <code>rust</code><br /><span>The Rust programming language (rust-lang.org)</span>
457
- </li>
458
- <li>
459
- <strong>Sass</strong> <code>sass</code><br /><span>The Sass stylesheet language language (sass-lang.com)</span>
460
- </li>
461
- <li>
462
- <strong>Scala</strong> <code>scala</code><br /><span>The Scala programming language (scala-lang.org)</span>
463
- </li>
464
- <li>
465
- <strong>Scheme</strong> <code>scheme</code><br /><span>The Scheme variant of Lisp</span>
466
- </li>
467
- <li>
468
- <strong>SCSS</strong> <code>scss</code><br /><span>SCSS stylesheets (sass-lang.com)</span>
469
- </li>
470
- <li>
471
- <strong>sed</strong> <code>sed</code><br /><span>sed, the ultimate stream editor</span>
472
- </li>
473
- <li>
474
- <strong>shell</strong> <code>shell</code><br /><span>Various shell languages, including sh and bash</span>
475
- </li>
476
- <li>
477
- <strong>Slim</strong> <code>slim</code><br /><span>The Slim template language</span>
478
- </li>
479
- <li>
480
- <strong>Smalltalk</strong> <code>smalltalk</code><br /><span>The Smalltalk programming language</span>
481
- </li>
482
- <li>
483
- <strong>SML</strong> <code>sml</code><br /><span>Standard ML</span>
484
- </li>
485
- <li>
486
- <strong>SQL</strong> <code>sql</code><br /><span>Structured Query Language, for relational databases</span>
487
- </li>
488
- <li>
489
- <strong>Swift</strong> <code>swift</code><br /><span>Multi paradigm, compiled programming language developed by Apple for iOS and OS X development. (developer.apple.com/swift)</span>
490
- </li>
491
- <li>
492
- <strong>Tcl</strong> <code>tcl</code><br /><span>The Tool Command Language (tcl.tk)</span>
493
- </li>
494
- <li>
495
- <strong>TeX</strong> <code>tex</code><br /><span>The TeX typesetting system</span>
496
- </li>
497
- <li>
498
- <strong>TOML</strong> <code>toml</code><br /><span>the TOML configuration format (https://github.com/mojombo/toml)</span>
499
- </li>
500
- <li>
501
- <strong>Visual Basic</strong> <code>vb</code><br /><span>Visual Basic</span>
502
- </li>
503
- <li>
504
- <strong>VimL</strong> <code>viml</code><br /><span>VimL, the scripting language for the Vim editor (vim.org)</span>
505
- </li>
506
- <li>
507
- <strong>XML</strong> <code>xml</code><br /><span><desc for="this-lexer">XML</desc></span>
508
- </li>
509
- <li>
510
- <strong>YAML</strong> <code>yaml</code><br /><span>Yaml Ain’t Markup Language (yaml.org)</span>
511
- </li>
512
- </ul>
513
-
514
- <p>And if what you want is not on this list, make you <a href="https://github.com/jneen/rouge/issues">open a ticket</a> on the project.</p>
515
-
516
-
517
-
518
- </div>
519
- </body>
520
- </html>