highlight_js-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/.gitignore +19 -0
  2. data/AUTHORS.en.txt +46 -0
  3. data/AUTHORS.ru.txt +46 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +24 -0
  6. data/README.md +34 -0
  7. data/Rakefile +2 -0
  8. data/classref.txt +437 -0
  9. data/highlight_js-rails.gemspec +19 -0
  10. data/lib/highlight_js/rails/engine.rb +6 -0
  11. data/lib/highlight_js/version.rb +5 -0
  12. data/lib/highlight_js-rails.rb +2 -0
  13. data/vendor/assets/images/highlight_js/brown_papersq.png +0 -0
  14. data/vendor/assets/images/highlight_js/school_book.png +0 -0
  15. data/vendor/assets/javascripts/highlight_js/highlight.js +630 -0
  16. data/vendor/assets/javascripts/highlight_js/languages/1c.js +68 -0
  17. data/vendor/assets/javascripts/highlight_js/languages/apache.js +432 -0
  18. data/vendor/assets/javascripts/highlight_js/languages/avrasm.js +75 -0
  19. data/vendor/assets/javascripts/highlight_js/languages/axapta.js +43 -0
  20. data/vendor/assets/javascripts/highlight_js/languages/bash.js +56 -0
  21. data/vendor/assets/javascripts/highlight_js/languages/cmake.js +24 -0
  22. data/vendor/assets/javascripts/highlight_js/languages/cpp.js +62 -0
  23. data/vendor/assets/javascripts/highlight_js/languages/cs.js +41 -0
  24. data/vendor/assets/javascripts/highlight_js/languages/css.js +101 -0
  25. data/vendor/assets/javascripts/highlight_js/languages/delphi.js +70 -0
  26. data/vendor/assets/javascripts/highlight_js/languages/diff.js +64 -0
  27. data/vendor/assets/javascripts/highlight_js/languages/django.js +72 -0
  28. data/vendor/assets/javascripts/highlight_js/languages/dos.js +29 -0
  29. data/vendor/assets/javascripts/highlight_js/languages/erlang-repl.js +81 -0
  30. data/vendor/assets/javascripts/highlight_js/languages/erlang.js +201 -0
  31. data/vendor/assets/javascripts/highlight_js/languages/go.js +58 -0
  32. data/vendor/assets/javascripts/highlight_js/languages/haskell.js +77 -0
  33. data/vendor/assets/javascripts/highlight_js/languages/ini.js +32 -0
  34. data/vendor/assets/javascripts/highlight_js/languages/java.js +45 -0
  35. data/vendor/assets/javascripts/highlight_js/languages/javascript.js +53 -0
  36. data/vendor/assets/javascripts/highlight_js/languages/lisp.js +87 -0
  37. data/vendor/assets/javascripts/highlight_js/languages/lua.js +75 -0
  38. data/vendor/assets/javascripts/highlight_js/languages/mel.js +40 -0
  39. data/vendor/assets/javascripts/highlight_js/languages/nginx.js +224 -0
  40. data/vendor/assets/javascripts/highlight_js/languages/objectivec.js +94 -0
  41. data/vendor/assets/javascripts/highlight_js/languages/parser3.js +52 -0
  42. data/vendor/assets/javascripts/highlight_js/languages/perl.js +143 -0
  43. data/vendor/assets/javascripts/highlight_js/languages/php.js +55 -0
  44. data/vendor/assets/javascripts/highlight_js/languages/profile.js +49 -0
  45. data/vendor/assets/javascripts/highlight_js/languages/python.js +71 -0
  46. data/vendor/assets/javascripts/highlight_js/languages/renderman.js +230 -0
  47. data/vendor/assets/javascripts/highlight_js/languages/ruby.js +203 -0
  48. data/vendor/assets/javascripts/highlight_js/languages/scala.js +60 -0
  49. data/vendor/assets/javascripts/highlight_js/languages/smalltalk.js +55 -0
  50. data/vendor/assets/javascripts/highlight_js/languages/sql.js +90 -0
  51. data/vendor/assets/javascripts/highlight_js/languages/tex.js +62 -0
  52. data/vendor/assets/javascripts/highlight_js/languages/vala.js +75 -0
  53. data/vendor/assets/javascripts/highlight_js/languages/vbscript.js +30 -0
  54. data/vendor/assets/javascripts/highlight_js/languages/vhdl.js +30 -0
  55. data/vendor/assets/javascripts/highlight_js/languages/xml.js +103 -0
  56. data/vendor/assets/stylesheets/highlight_js/arta.css +151 -0
  57. data/vendor/assets/stylesheets/highlight_js/ascetic.css +45 -0
  58. data/vendor/assets/stylesheets/highlight_js/brown_paper.css.erb +105 -0
  59. data/vendor/assets/stylesheets/highlight_js/dark.css +103 -0
  60. data/vendor/assets/stylesheets/highlight_js/default.css +121 -0
  61. data/vendor/assets/stylesheets/highlight_js/far.css +118 -0
  62. data/vendor/assets/stylesheets/highlight_js/github.css +129 -0
  63. data/vendor/assets/stylesheets/highlight_js/idea.css +118 -0
  64. data/vendor/assets/stylesheets/highlight_js/ir_black.css +103 -0
  65. data/vendor/assets/stylesheets/highlight_js/magula.css +118 -0
  66. data/vendor/assets/stylesheets/highlight_js/school_book.css.erb +111 -0
  67. data/vendor/assets/stylesheets/highlight_js/solarized_dark.css +96 -0
  68. data/vendor/assets/stylesheets/highlight_js/solarized_light.css +96 -0
  69. data/vendor/assets/stylesheets/highlight_js/sunburst.css +147 -0
  70. data/vendor/assets/stylesheets/highlight_js/vs.css +84 -0
  71. data/vendor/assets/stylesheets/highlight_js/zenburn.css +115 -0
  72. metadata +129 -0
data/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .*.swp
19
+ .*.swo
data/AUTHORS.en.txt ADDED
@@ -0,0 +1,46 @@
1
+ Syntax highlighting with language autodetection.
2
+
3
+ URL: http://softwaremaniacs.org/soft/highlight/en/
4
+
5
+ Original author and current maintainer:
6
+ Ivan Sagalaev <maniac@softwaremaniacs.org>
7
+
8
+ Contributors:
9
+
10
+ - Peter Leonov <gojpeg@gmail.com>
11
+ - Victor Karamzin <Victor.Karamzin@enterra-inc.com>
12
+ - Vsevolod Solovyov <vsevolod.solovyov@gmail.com>
13
+ - Anton Kovalyov <anton@kovalyov.net>
14
+ - Nikita Ledyaev <lenikita@yandex.ru>
15
+ - Konstantin Evdokimenko <qewerty@gmail.com>
16
+ - Dmitri Roudakov <dmitri@roudakov.ru>
17
+ - Yuri Ivanov <ivanov@supersoft.ru>
18
+ - Vladimir Ermakov <vooon341@mail.ru>
19
+ - Vladimir Gubarkov <xonixx@gmail.com>
20
+ - Brian Beck <exogen@gmail.com>
21
+ - MajestiC <majestic2k@gmail.com>
22
+ - Vasily Polovnyov <vast@whiteants.net>
23
+ - Vladimir Epifanov <voldmar@voldmar.ru>
24
+ - Alexander Makarov (http://rmcreative.ru/)
25
+ - Vah <vahtenberg@gmail.com>
26
+ - Shuen-Huei Guan <drake.guan@gmail.com>
27
+ - Jason Diamond <jason@diamond.name>
28
+ - Michal Gabrukiewicz <mgabru@gmail.com>
29
+ - Ruslan Keba <rukeba@gmail.com>
30
+ - Sergey Baranov <segyrn@yandex.ru>
31
+ - Zaripov Yura <yur4ik7@ukr.net>
32
+ - Oleg Volchkov <oleg@volchkov.net>
33
+ - Vasily Mikhailitchenko <vaskas@programica.ru>
34
+ - Jan Berkel <jan.berkel@gmail.com>
35
+ - Vladimir Moskva <vladmos@gmail.com>
36
+ - Loren Segal <lsegal@soen.ca>
37
+ - Andrew Fedorov <dmmdrs@mail.ru>
38
+ - Igor Kalnitsky <igor.kalnitsky@gmail.com>
39
+ - Jeremy Hull <sourdrums@gmail.com>
40
+ - Valerii Hiora <valerii.hiora@gmail.com>
41
+ - Nikolay Zakharov <nikolay.desh@gmail.com>
42
+ - Dmitry Kovega <arhibot@gmail.com>
43
+ - Sergey Ignatov <sergey@ignatov.spb.su>
44
+ - Antono Vasiljev <self@antono.info>
45
+ - Stephan Kountso <steplg@gmail.com>
46
+ - pumbur <pumbur@pumbur.net>
data/AUTHORS.ru.txt ADDED
@@ -0,0 +1,46 @@
1
+ Подсветка синтаксиса с автоопределением языка.
2
+
3
+ URL: http://softwaremaniacs.org/soft/highlight/
4
+
5
+ Первоначальный автор и ведущий проекта:
6
+ Иван Сагалаев <maniac@softwaremaniacs.org>
7
+
8
+ Внесли свой вклад:
9
+
10
+ - Петр Леонов <gojpeg@gmail.com>
11
+ - Виктор Карамзин <Victor.Karamzin@enterra-inc.com>
12
+ - Всеволод Соловьёв <vsevolod.solovyov@gmail.com>
13
+ - Антон Ковалёв <anton@kovalyov.net>
14
+ - Никита Ледяев <lenikita@yandex.ru>
15
+ - Константин Евдокименко <qewerty@gmail.com>
16
+ - Дмитрий Рудаков <dmitri@roudakov.ru>
17
+ - Юрий Иванов <ivanov@supersoft.ru>
18
+ - Владимир Ермаков <vooon341@mail.ru>
19
+ - Владимир Губарьков <xonixx@gmail.com>
20
+ - Брайан Бек <exogen@gmail.com>
21
+ - MajestiC <majestic2k@gmail.com>
22
+ - Василий Половнёв <vast@whiteants.net>
23
+ - Владимир Епифанов <voldmar@voldmar.ru>
24
+ - Александр Макаров (http://rmcreative.ru/)
25
+ - Vah <vahtenberg@gmail.com>
26
+ - Шуэн-Хуэй Гуан <drake.guan@gmail.com>
27
+ - Джейсон Даймонд <jason@diamond.name>
28
+ - Михал Габрукевич <mgabru@gmail.com>
29
+ - Руслан Кеба <rukeba@gmail.com>
30
+ - Сергей Баранов <segyrn@yandex.ru>
31
+ - Зарипов Юра <yur4ik7@ukr.net>
32
+ - Олег Волчков <oleg@volchkov.net>
33
+ - Василий Михайличенко <vaskas@programica.ru>
34
+ - Ян Беркель <jan.berkel@gmail.com>
35
+ - Владимир Москва <vladmos@gmail.com>
36
+ - Лорен Сегал <lsegal@soen.ca>
37
+ - Андрей Фёдоров <dmmdrs@mail.ru>
38
+ - Игорь Кальницкий <igor.kalnitsky@gmail.com>
39
+ - Джереми Халл <sourdrums@gmail.com>
40
+ - Валерий Хиора <valerii.hiora@gmail.com>
41
+ - Николай Захаров <nikolay.desh@gmail.com>
42
+ - Дмитрий Ковега <arhibot@gmail.com>
43
+ - Сергей Игнатов <sergey@ignatov.spb.su>
44
+ - Антоно Васильев <self@antono.info>
45
+ - Степан Кунцьо <steplg@gmail.com>
46
+ - pumbur <pumbur@pumbur.net>
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'http://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in highlight_js-rails.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2006, Ivan Sagalaev
2
+ All rights reserved.
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are met:
5
+
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+ * Neither the name of highlight.js nor the names of its contributors
12
+ may be used to endorse or promote products derived from this software
13
+ without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # WMD Editor for rails 3.1
2
+
3
+ Rails pipeline wraper for highlight.js http://softwaremaniacs.org/soft/highlight/en/
4
+
5
+ ## Install
6
+
7
+ In you Gemfile
8
+
9
+ ```ruby
10
+ gem 'highlight_js-rails'
11
+
12
+ # or
13
+
14
+ gem 'highlight_js-rails', :git => 'git://github.com/chloerei/highlight_js-rails.git'
15
+ ```
16
+
17
+ Then `bundle install`
18
+
19
+ ## Usage
20
+
21
+ application.js
22
+
23
+ ```javascript
24
+ //= require highlight_js/highlight
25
+ //= require highlight_js/languages/ruby
26
+
27
+ hljs.initHighlightingOnLoad();
28
+ ```
29
+
30
+ application.css
31
+
32
+ ```css
33
+ *= require highlight_js/github
34
+ ```
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
data/classref.txt ADDED
@@ -0,0 +1,437 @@
1
+ This is a full list of available classes corresponding to languages'
2
+ syntactic structures. The parentheses after language name contain identifiers
3
+ used as class names in `<code>` element.
4
+
5
+ Python ("python"):
6
+
7
+ keyword keyword
8
+ built_in built-in objects (None, False, True and Ellipsis)
9
+ number number
10
+ string string (of any type)
11
+ comment comment
12
+ decorator @-decorator for functions
13
+ function function header "def some_name(...):"
14
+ class class header "class SomeName(...):"
15
+ title name of a function or a class inside a header
16
+ params everything inside parentheses in a function's or class' header
17
+
18
+ Python profiler results ("profile"):
19
+
20
+ number number
21
+ string string
22
+ builtin builtin function entry
23
+ filename filename in an entry
24
+ summary profiling summary
25
+ header header of table of results
26
+ keyword column header
27
+ function function name in an entry (including parentheses)
28
+ title actual name of a function in an entry (excluding parentheses)
29
+
30
+ Ruby ("ruby"):
31
+
32
+ keyword keyword
33
+ string string
34
+ subst in-string substitution (#{...})
35
+ comment comment
36
+ yardoctag YARD tag
37
+ function function header "def some_name(...):"
38
+ class class header "class SomeName(...):"
39
+ title name of a function or a class inside a header
40
+ parent name of a parent class
41
+ symbol symbol
42
+ instancevar instance variable
43
+
44
+ Perl ("perl"):
45
+
46
+ keyword keyword
47
+ comment comment
48
+ number number
49
+ string string
50
+ regexp regular expression
51
+ sub subroutine header (from "sub" till "{")
52
+ variable variable starting with "$", "%", "@"
53
+ operator operator
54
+ pod plain old doc
55
+
56
+ PHP ("php"):
57
+
58
+ keyword keyword
59
+ number number
60
+ string string (of any type)
61
+ comment comment
62
+ phpdoc phpdoc params in comments
63
+ variable variable starting with "$"
64
+ preprocessor preprocessor marks: "<?php" and "?>"
65
+
66
+ Scala ("scala"):
67
+
68
+ keyword keyword
69
+ number number
70
+ string string
71
+ comment comment
72
+ annotaion annotation
73
+ javadoc javadoc comment
74
+ javadoctag @-tag in javadoc
75
+ class class header
76
+ title class name inside a header
77
+ params everything in parentheses inside a class header
78
+ inheritance keywords "extends" and "with" inside class header
79
+
80
+ Go language ("go"):
81
+ comment comment
82
+ string string constant
83
+ number number
84
+ keyword language keywords
85
+ constant true false nil iota
86
+ typename built-in plain types (int, string etc.)
87
+ built_in built-in functions
88
+
89
+ XML ("xml"):
90
+
91
+ tag any tag from "<" till ">"
92
+ comment comment
93
+ pi processing instruction (<? ... ?>)
94
+ cdata CDATA section
95
+ attribute attribute
96
+ value attribute's value
97
+
98
+ HTML ("html"):
99
+
100
+ keyword HTML tag
101
+ tag any tag from "<" till ">"
102
+ comment comment
103
+ doctype <!DOCTYPE ... > declaration
104
+ attribute tag's attribute with or without value
105
+ value attribute's value
106
+
107
+ CSS ("css"):
108
+
109
+ tag HTML tag in selectors
110
+ id #some_name in selectors
111
+ class .some_name in selectors
112
+ at_rule @-rule till first "{" or ";"
113
+ attr_selector attribute selector (square brackets in a[href^=http://])
114
+ pseudo pseudo classes and elemens (:after, ::after etc.)
115
+ comment comment
116
+ rules everything from "{" till "}"
117
+ property property name inside a rule
118
+ value property value inside a rule, from ":" till ";" or
119
+ till the end of rule block
120
+ number number within a value
121
+ string string within a value
122
+ hexcolor hex color (#FFFFFF) within a value
123
+ function CSS function within a value
124
+ params everything between "(" and ")" within a function
125
+ important "!important" symbol
126
+
127
+ Django ("django"):
128
+
129
+ keyword HTML tag in HTML, default tags and default filters in templates
130
+ tag any tag from "<" till ">"
131
+ comment comment
132
+ doctype <!DOCTYPE ... > declaration
133
+ attribute tag's attribute with or withou value
134
+ value attribute's value
135
+ template_tag template tag {% .. %}
136
+ variable template variable {{ .. }}
137
+ template_comment template comment, both {# .. #} and {% comment %}
138
+ filter filter from "|" till the next filter or the end of tag
139
+ argument filter argument
140
+
141
+ Javascript ("javascript"):
142
+
143
+ keyword keyword
144
+ comment comment
145
+ number number
146
+ literal special literal: "true", "false" and "null"
147
+ string string
148
+ regexp regular expression
149
+ function header of a function
150
+ title name of a function inside a header
151
+ params everything inside parentheses in a function's header
152
+
153
+ VBScript ("vbscript"):
154
+
155
+ keyword keyword
156
+ number number
157
+ string string
158
+ comment comment
159
+ built_in built-in function
160
+
161
+ Lua ("lua"):
162
+
163
+ keyword keyword
164
+ number number
165
+ string string
166
+ comment comment
167
+ built_in built-in operator
168
+ function header of a function
169
+ title name of a function inside a header
170
+ params everything inside parentheses in a function's header
171
+ long_brackets multiline string in [=[ .. ]=]
172
+
173
+ Delphi ("delphi"):
174
+
175
+ keyword keyword
176
+ comment comment (of any type)
177
+ number number
178
+ string string
179
+ function header of a function, procedure, constructor and destructor
180
+ title name of a function, procedure, constructor or destructor
181
+ inside a header
182
+ params everything inside parentheses in a function's header
183
+ class class' body from "= class" till "end;"
184
+
185
+ Java ("java"):
186
+
187
+ keyword keyword
188
+ number number
189
+ string string
190
+ comment commment
191
+ annotaion annotation
192
+ javadoc javadoc comment
193
+ class class header from "class" till "{"
194
+ title class name inside a header
195
+ params everything in parentheses inside a class header
196
+ inheritance keywords "extends" and "implements" inside class header
197
+
198
+ C++ ("cpp"):
199
+
200
+ keyword keyword
201
+ number number
202
+ string string and character
203
+ comment comment
204
+ preprocessor preprocessor directive
205
+ stl_container instantiation of STL containers ("vector<...>")
206
+
207
+ Objective C ("objectivec"):
208
+ keyword keyword
209
+ built_in Cocoa/Cocoa Touch constants and classes
210
+ number number
211
+ string string
212
+ comment comment
213
+ preprocessor preprocessor directive
214
+ class interface/implementation, protocol and forward class declaration
215
+
216
+ Vala ("vala"):
217
+
218
+ keyword keyword
219
+ number number
220
+ string string
221
+ comment comment
222
+ class class definitions
223
+ title in class definition
224
+ constant ALL_UPPER_CASE
225
+
226
+ C# ("cs"):
227
+
228
+ keyword keyword
229
+ number number
230
+ string string
231
+ comment commment
232
+ xmlDocTag xmldoc tag ("///", "<!--", "-->", "<..>")
233
+
234
+ RenderMan RSL ("rsl"):
235
+
236
+ keyword keyword
237
+ number number
238
+ string string (including @"..")
239
+ comment comment
240
+ preprocessor preprocessor directive
241
+ shader sahder keywords
242
+ shading shading keywords
243
+ built_in built-in function
244
+
245
+ RenderMan RIB ("rib"):
246
+
247
+ keyword keyword
248
+ number number
249
+ string string
250
+ comment comment
251
+ commands command
252
+
253
+ Maya Embedded Language ("mel"):
254
+
255
+ keyword keyword
256
+ number number
257
+ string string
258
+ comment comment
259
+ variable variable
260
+
261
+ SQL ("sql"):
262
+
263
+ keyword keyword (mostly SQL'92 and SQL'99)
264
+ number number
265
+ string string (of any type: "..", '..', `..`)
266
+ comment comment
267
+ aggregate aggregate function
268
+
269
+ Smalltalk ("smalltalk"):
270
+
271
+ keyword keyword
272
+ number number
273
+ string string
274
+ comment commment
275
+ symbol symbol
276
+ array array
277
+ class name of a class
278
+ char char
279
+ localvars block of local variables
280
+
281
+ Lisp ("lisp"):
282
+
283
+ keyword keyword
284
+ number number
285
+ string string
286
+ comment commment
287
+ variable variable
288
+ literal b, t and nil
289
+ list non-quoted list
290
+ title first symbol in a non-quoted list
291
+ body remainder of the non-quoted list
292
+ quoted quoted list, both "(quote .. )" and "'(..)"
293
+
294
+ Ini ("ini"):
295
+
296
+ title title of a section
297
+ value value of a setting of any type
298
+ string string
299
+ number number
300
+ keyword boolean value keyword
301
+
302
+ Apache ("apache"):
303
+
304
+ keyword keyword
305
+ number number
306
+ comment commment
307
+ literal On and Off
308
+ sqbracket variables in rewrites "%{..}"
309
+ cbracket options in rewrites "[..]"
310
+ tag begin and end of a configuration section
311
+
312
+ Nginx ("nginx"):
313
+
314
+ keyword keyword
315
+ string string
316
+ number number
317
+ comment comment
318
+ built_in built-in constant
319
+ variable $-variable
320
+
321
+ Diff ("diff"):
322
+
323
+ header file header
324
+ chunk chunk header within a file
325
+ addition added lines
326
+ deletion deleted lines
327
+ change changed lines
328
+
329
+ DOS ("dos"):
330
+
331
+ keyword keyword
332
+ flow batch control keyword
333
+ stream DOS special files ("con", "prn", ...)
334
+ winutils some commands (see dos.js specifically)
335
+ envvar environment variables
336
+
337
+ Bash ("bash"):
338
+
339
+ keyword keyword
340
+ string string
341
+ number number
342
+ comment comment
343
+ literal special literal: "true" и "false"
344
+ variable variable
345
+ shebang script interpreter header
346
+
347
+ CMake ("cmake")
348
+
349
+ keyword keyword
350
+ number number
351
+ string string
352
+ comment commment
353
+ envvar $-variable
354
+
355
+ Axapta ("axapta"):
356
+
357
+ keyword keyword
358
+ number number
359
+ string string
360
+ comment commment
361
+ class class header from "class" till "{"
362
+ title class name inside a header
363
+ params everything in parentheses inside a class header
364
+ inheritance keywords "extends" and "implements" inside class header
365
+ preprocessor preprocessor directive
366
+
367
+ 1C ("1c"):
368
+
369
+ keyword keyword
370
+ number number
371
+ date date
372
+ string string
373
+ comment commment
374
+ function header of function or procudure
375
+ title function name inside a header
376
+ params everything in parentheses inside a function header
377
+ preprocessor preprocessor directive
378
+
379
+ AVR assembler ("avrasm"):
380
+
381
+ keyword keyword
382
+ built_in pre-defined register
383
+ number number
384
+ string string
385
+ comment commment
386
+ label label
387
+ preprocessor preprocessor directive
388
+ localvars substitution in .macro
389
+
390
+ VHDL ("vhdl")
391
+
392
+ keyword keyword
393
+ number number
394
+ string string
395
+ comment commment
396
+ literal signal logical value
397
+
398
+ Parser3 ("parser3"):
399
+
400
+ keyword keyword
401
+ number number
402
+ comment commment
403
+ variable variable starting with "$"
404
+ preprocessor preprocessor directive
405
+ title user-defined name starting with "@"
406
+
407
+ TeX ("tex"):
408
+
409
+ comment comment
410
+ number number
411
+ command command
412
+ parameter parameter
413
+ formula formula
414
+ special special symbol
415
+
416
+ Haskell ("haskell"):
417
+
418
+ keyword keyword
419
+ built_in built-in typeclass/functions (Bool, Int)
420
+ number number
421
+ string string
422
+ comment comment
423
+ class type classes and other data types
424
+ title function name
425
+ label type class name
426
+
427
+ Erlang ("erlang"):
428
+
429
+ comment comment
430
+ string string
431
+ number number
432
+ keyword keyword
433
+ record_name record access (#record_name)
434
+ title name of declaration function
435
+ variable variable (starts with capital letter or with _)
436
+ pp.keywords module's attribute (-attribute)
437
+ function_name atom or atom:atom in case of function call
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/highlight_js/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Rei\n"]
6
+ gem.email = ["chloerei@gmail.com"]
7
+ gem.description = %q{Rails pipeline wraper for highlight.js}
8
+ gem.summary = %q{Rails pipeline wraper for highlight.js}
9
+ gem.homepage = "https://github.com/chloerei/highlight_js-rails"
10
+
11
+ gem.add_dependency "rails", "~> 3.1.1"
12
+
13
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
14
+ gem.files = `git ls-files`.split("\n")
15
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ gem.name = "highlight_js-rails"
17
+ gem.require_paths = ["lib"]
18
+ gem.version = HighlightJs::Rails::VERSION
19
+ end
@@ -0,0 +1,6 @@
1
+ module HighlightJs
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module HighlightJs
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ require "highlight_js/version"
2
+ require "highlight_js/rails/engine"