kitabu 1.0.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -3
  3. data/.travis.yml +18 -0
  4. data/CHANGELOG.md +9 -0
  5. data/Gemfile.lock +67 -50
  6. data/README.md +235 -0
  7. data/attachments/browser-version.png +0 -0
  8. data/attachments/cover.png +0 -0
  9. data/attachments/kitabu.epub +0 -0
  10. data/attachments/kitabu.mobi +0 -0
  11. data/attachments/kitabu.pdf +0 -0
  12. data/{spec/support/mybook/output → examples/kitabu/output/epub/images}/.gitkeep +0 -0
  13. data/examples/kitabu/output/epub/images/kitabu-icon.png +0 -0
  14. data/examples/kitabu/output/epub/images/kitabu-icon.svg +19 -0
  15. data/examples/kitabu/output/epub/images/kitabu-word.png +0 -0
  16. data/examples/kitabu/output/epub/images/kitabu-word.svg +14 -0
  17. data/examples/kitabu/output/epub/images/kitabu.png +0 -0
  18. data/examples/kitabu/output/epub/images/kitabu.svg +20 -0
  19. data/examples/kitabu/output/epub/section_0.html +266 -0
  20. data/examples/kitabu/output/epub/section_1.html +246 -0
  21. data/examples/kitabu/output/epub/section_2.html +520 -0
  22. data/examples/kitabu/output/epub/section_3.html +282 -0
  23. data/examples/kitabu/output/epub/section_4.html +276 -0
  24. data/examples/kitabu/output/epub/styles/epub.css +437 -0
  25. data/examples/kitabu/output/epub/styles/html.css +712 -0
  26. data/examples/kitabu/output/epub/styles/pdf.css +840 -0
  27. data/examples/kitabu/output/epub/styles/print.css +1278 -0
  28. data/examples/kitabu/output/epub/toc.html +37 -0
  29. data/{spec/support/mybook/templates/epub/style.css → examples/kitabu/output/images/.gitkeep} +0 -0
  30. data/examples/kitabu/output/images/kitabu-icon.png +0 -0
  31. data/examples/kitabu/output/images/kitabu-icon.svg +19 -0
  32. data/examples/kitabu/output/images/kitabu-word.png +0 -0
  33. data/examples/kitabu/output/images/kitabu-word.svg +14 -0
  34. data/examples/kitabu/output/images/kitabu.png +0 -0
  35. data/examples/kitabu/output/images/kitabu.svg +20 -0
  36. data/examples/kitabu/output/kitabu.epub +0 -0
  37. data/examples/kitabu/output/kitabu.html +513 -0
  38. data/examples/kitabu/output/kitabu.mobi +0 -0
  39. data/examples/kitabu/output/kitabu.pdf +0 -0
  40. data/examples/kitabu/output/kitabu.pdf.html +729 -0
  41. data/examples/kitabu/output/kitabu.print.html +729 -0
  42. data/examples/kitabu/output/kitabu.print.pdf +0 -0
  43. data/examples/kitabu/output/kitabu.txt +440 -0
  44. data/examples/kitabu/output/styles/epub.css +437 -0
  45. data/examples/kitabu/output/styles/html.css +712 -0
  46. data/examples/kitabu/output/styles/pdf.css +840 -0
  47. data/examples/kitabu/output/styles/print.css +1278 -0
  48. data/kitabu.gemspec +7 -5
  49. data/lib/kitabu.rb +10 -20
  50. data/lib/kitabu/cli.rb +0 -5
  51. data/lib/kitabu/dependency.rb +0 -4
  52. data/lib/kitabu/exporter.rb +2 -0
  53. data/lib/kitabu/extensions/rouge.rb +9 -0
  54. data/lib/kitabu/generator.rb +9 -21
  55. data/lib/kitabu/helpers.rb +47 -0
  56. data/lib/kitabu/markdown.rb +31 -0
  57. data/lib/kitabu/parser.rb +21 -3
  58. data/lib/kitabu/parser/epub.rb +31 -18
  59. data/lib/kitabu/parser/html.rb +48 -29
  60. data/lib/kitabu/parser/mobi.rb +1 -1
  61. data/lib/kitabu/parser/pdf.rb +52 -8
  62. data/lib/kitabu/version.rb +2 -2
  63. data/spec/kitabu/cli/export_spec.rb +4 -4
  64. data/spec/kitabu/cli/new_spec.rb +2 -2
  65. data/spec/kitabu/markdown_spec.rb +24 -0
  66. data/spec/kitabu/parser/html_spec.rb +20 -25
  67. data/spec/kitabu/parser/mobi_spec.rb +14 -0
  68. data/spec/kitabu/parser/pdf_spec.rb +18 -1
  69. data/spec/kitabu/parser/txt_spec.rb +14 -0
  70. data/spec/spec_helper.rb +10 -6
  71. data/spec/support/mybook/config/helper.rb +4 -29
  72. data/spec/support/mybook/config/kitabu.yml +0 -10
  73. data/spec/support/mybook/templates/epub/cover.erb +4 -3
  74. data/{templates → spec/support/mybook/templates/epub}/cover.png +0 -0
  75. data/spec/support/mybook/templates/epub/page.erb +3 -2
  76. data/spec/support/mybook/templates/html/layout.erb +10 -13
  77. data/spec/support/mybook/templates/styles/epub.scss +3 -0
  78. data/spec/support/mybook/templates/styles/html.scss +3 -0
  79. data/spec/support/mybook/templates/styles/pdf.scss +3 -0
  80. data/spec/support/mybook/templates/styles/print.scss +3 -0
  81. data/spec/support/mybook/text/{01_Markdown_Chapter.markdown → 01_Markdown_Chapter.md} +2 -3
  82. data/spec/support/mybook/text/02_ERB_Chapter.md.erb +7 -0
  83. data/spec/support/mybook/text/{04_With_Directory/Some_Chapter.mkdn → 03_With_Directory/Some_Chapter.md} +0 -0
  84. data/spec/support/mybook/text/{CHANGELOG.textile → CHANGELOG.md} +2 -2
  85. data/spec/support/mybook/text/{TOC.textile → TOC.md} +0 -0
  86. data/spec/support/mybook/text/{_00_Introduction.markdown → _00_Introduction.md} +0 -0
  87. data/spec/support/shared.rb +14 -10
  88. data/templates/Gemfile +3 -3
  89. data/templates/Guardfile +1 -5
  90. data/templates/config.erb +5 -5
  91. data/templates/cover.erb +4 -3
  92. data/templates/epub.erb +3 -2
  93. data/templates/helper.rb +28 -29
  94. data/templates/images/.gitkeep +0 -0
  95. data/templates/images/kitabu-icon.png +0 -0
  96. data/templates/images/kitabu-icon.svg +19 -0
  97. data/templates/images/kitabu-word.png +0 -0
  98. data/templates/images/kitabu-word.svg +14 -0
  99. data/templates/images/kitabu.png +0 -0
  100. data/templates/images/kitabu.svg +20 -0
  101. data/{examples/RailsGuides/templates → templates/templates/epub}/cover.erb +4 -3
  102. data/templates/templates/epub/cover.png +0 -0
  103. data/templates/templates/epub/page.erb +16 -0
  104. data/templates/{layout.erb → templates/html/layout.erb} +22 -11
  105. data/templates/templates/styles/epub.scss +1 -0
  106. data/templates/templates/styles/files/_normalize.scss +427 -0
  107. data/templates/templates/styles/html.scss +252 -0
  108. data/templates/templates/styles/pdf.scss +371 -0
  109. data/templates/templates/styles/print.scss +2 -0
  110. data/templates/text/01_Getting_Started.md +26 -0
  111. data/templates/text/02_Creating_Chapters.md +22 -0
  112. data/templates/text/03_Syntax_Highlighting.erb +69 -0
  113. data/templates/text/04_Dynamic_Content.erb +64 -0
  114. data/templates/text/05_Exporting_Files.md +49 -0
  115. metadata +143 -83
  116. data/README.rdoc +0 -218
  117. data/examples/RailsGuides/config/helper.rb +0 -29
  118. data/examples/RailsGuides/config/kitabu.yml +0 -44
  119. data/examples/RailsGuides/images/challenge.png +0 -0
  120. data/examples/RailsGuides/images/posts_index.png +0 -0
  121. data/examples/RailsGuides/images/rails_welcome.png +0 -0
  122. data/examples/RailsGuides/output/RailsGuides.epub +0 -0
  123. data/examples/RailsGuides/output/RailsGuides.html +0 -1556
  124. data/examples/RailsGuides/output/RailsGuides.pdf +3 -4934
  125. data/examples/RailsGuides/templates/layout.css +0 -352
  126. data/examples/RailsGuides/templates/layout.erb +0 -43
  127. data/examples/RailsGuides/templates/syntax.css +0 -62
  128. data/examples/RailsGuides/templates/user.css +0 -19
  129. data/examples/RailsGuides/text/01_Guide_Assumptions.mkdn +0 -13
  130. data/examples/RailsGuides/text/02_What_is_Rails.mkdn +0 -106
  131. data/examples/RailsGuides/text/03_Creating_a_new_Rails_project.mkdn +0 -200
  132. data/examples/RailsGuides/text/04_Hello_Rails.mkdn +0 -62
  133. data/examples/RailsGuides/text/05_Getting_Up_and_Running_Quickly_with_Scaffolding.mkdn +0 -4
  134. data/examples/RailsGuides/text/06_Creating_a_resource.mkdn +0 -503
  135. data/examples/RailsGuides/text/07_Adding_a_second_model.mkdn +0 -232
  136. data/examples/RailsGuides/text/08_Refactoring.mkdn +0 -123
  137. data/examples/RailsGuides/text/09_Deleting_comments.mkdn +0 -57
  138. data/examples/RailsGuides/text/09_Security.mkdn +0 -56
  139. data/examples/RailsGuides/text/10_Building_a_multi_model_form.mkdn +0 -130
  140. data/examples/RailsGuides/text/11_View_helpers.mkdn +0 -50
  141. data/examples/RailsGuides/text/12_Whats_next.mkdn +0 -14
  142. data/examples/RailsGuides/text/13_Configuration_gotchas.mkdn +0 -10
  143. data/lib/kitabu/adapters/markdown.rb +0 -34
  144. data/lib/kitabu/extensions/redcloth.rb +0 -69
  145. data/lib/kitabu/syntax.rb +0 -130
  146. data/spec/kitabu/extensions/redcloth_spec.rb +0 -57
  147. data/spec/kitabu/syntax_spec.rb +0 -106
  148. data/spec/support/mybook/templates/html/layout.css +0 -353
  149. data/spec/support/mybook/templates/html/syntax.css +0 -58
  150. data/spec/support/mybook/templates/html/user.css +0 -1
  151. data/spec/support/mybook/text/02_Textile_Chapter.textile +0 -3
  152. data/spec/support/mybook/text/03_HTML_Chapter.html +0 -3
  153. data/templates/epub.css +0 -500
  154. data/templates/layout.css +0 -353
  155. data/templates/sample.md +0 -6
  156. data/templates/syntax.css +0 -58
  157. data/templates/user.css +0 -1
@@ -0,0 +1,520 @@
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>