highlight_js-rails4 7.4.0.3
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.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/AUTHORS.en.txt +84 -0
- data/AUTHORS.ru.txt +84 -0
- data/Gemfile +4 -0
- data/LICENSE +24 -0
- data/README.highlight-js.md +168 -0
- data/README.highlight-js.ru.md +173 -0
- data/README.md +52 -0
- data/Rakefile +2 -0
- data/classref.txt +676 -0
- data/highlight_js-rails4.gemspec +19 -0
- data/lib/highlight_js/rails/engine.rb +6 -0
- data/lib/highlight_js/version.rb +5 -0
- data/lib/highlight_js-rails4.rb +2 -0
- data/vendor/assets/images/highlight_js/brown_papersq.png +0 -0
- data/vendor/assets/images/highlight_js/pojoaque.jpg +0 -0
- data/vendor/assets/images/highlight_js/school_book.png +0 -0
- data/vendor/assets/javascripts/highlight_js/highlight.js +613 -0
- data/vendor/assets/javascripts/highlight_js/languages/1c.js +92 -0
- data/vendor/assets/javascripts/highlight_js/languages/actionscript.js +83 -0
- data/vendor/assets/javascripts/highlight_js/languages/apache.js +117 -0
- data/vendor/assets/javascripts/highlight_js/languages/applescript.js +104 -0
- data/vendor/assets/javascripts/highlight_js/languages/asciidoc.js +187 -0
- data/vendor/assets/javascripts/highlight_js/languages/avrasm.js +60 -0
- data/vendor/assets/javascripts/highlight_js/languages/axapta.js +44 -0
- data/vendor/assets/javascripts/highlight_js/languages/bash.js +70 -0
- data/vendor/assets/javascripts/highlight_js/languages/brainfuck.js +31 -0
- data/vendor/assets/javascripts/highlight_js/languages/clojure.js +101 -0
- data/vendor/assets/javascripts/highlight_js/languages/cmake.js +38 -0
- data/vendor/assets/javascripts/highlight_js/languages/coffeescript.js +137 -0
- data/vendor/assets/javascripts/highlight_js/languages/cpp.js +53 -0
- data/vendor/assets/javascripts/highlight_js/languages/cs.js +51 -0
- data/vendor/assets/javascripts/highlight_js/languages/css.js +105 -0
- data/vendor/assets/javascripts/highlight_js/languages/d.js +267 -0
- data/vendor/assets/javascripts/highlight_js/languages/delphi.js +77 -0
- data/vendor/assets/javascripts/highlight_js/languages/diff.js +63 -0
- data/vendor/assets/javascripts/highlight_js/languages/django.js +89 -0
- data/vendor/assets/javascripts/highlight_js/languages/dos.js +35 -0
- data/vendor/assets/javascripts/highlight_js/languages/erlang-repl.js +55 -0
- data/vendor/assets/javascripts/highlight_js/languages/erlang.js +162 -0
- data/vendor/assets/javascripts/highlight_js/languages/fsharp.js +56 -0
- data/vendor/assets/javascripts/highlight_js/languages/glsl.js +99 -0
- data/vendor/assets/javascripts/highlight_js/languages/go.js +45 -0
- data/vendor/assets/javascripts/highlight_js/languages/haml.js +142 -0
- data/vendor/assets/javascripts/highlight_js/languages/handlebars.js +64 -0
- data/vendor/assets/javascripts/highlight_js/languages/haskell.js +90 -0
- data/vendor/assets/javascripts/highlight_js/languages/http.js +39 -0
- data/vendor/assets/javascripts/highlight_js/languages/ini.js +33 -0
- data/vendor/assets/javascripts/highlight_js/languages/java.js +50 -0
- data/vendor/assets/javascripts/highlight_js/languages/javascript.js +57 -0
- data/vendor/assets/javascripts/highlight_js/languages/json.js +42 -0
- data/vendor/assets/javascripts/highlight_js/languages/lasso.js +112 -0
- data/vendor/assets/javascripts/highlight_js/languages/lisp.js +90 -0
- data/vendor/assets/javascripts/highlight_js/languages/lua.js +65 -0
- data/vendor/assets/javascripts/highlight_js/languages/markdown.js +84 -0
- data/vendor/assets/javascripts/highlight_js/languages/matlab.js +81 -0
- data/vendor/assets/javascripts/highlight_js/languages/mel.js +236 -0
- data/vendor/assets/javascripts/highlight_js/languages/mizar.js +24 -0
- data/vendor/assets/javascripts/highlight_js/languages/nginx.js +101 -0
- data/vendor/assets/javascripts/highlight_js/languages/objectivec.js +89 -0
- data/vendor/assets/javascripts/highlight_js/languages/parser3.js +50 -0
- data/vendor/assets/javascripts/highlight_js/languages/perl.js +169 -0
- data/vendor/assets/javascripts/highlight_js/languages/php.js +107 -0
- data/vendor/assets/javascripts/highlight_js/languages/profile.js +49 -0
- data/vendor/assets/javascripts/highlight_js/languages/python.js +88 -0
- data/vendor/assets/javascripts/highlight_js/languages/r.js +80 -0
- data/vendor/assets/javascripts/highlight_js/languages/rib.js +32 -0
- data/vendor/assets/javascripts/highlight_js/languages/rsl.js +44 -0
- data/vendor/assets/javascripts/highlight_js/languages/ruby.js +195 -0
- data/vendor/assets/javascripts/highlight_js/languages/ruleslanguage.js +62 -0
- data/vendor/assets/javascripts/highlight_js/languages/rust.js +55 -0
- data/vendor/assets/javascripts/highlight_js/languages/scala.js +61 -0
- data/vendor/assets/javascripts/highlight_js/languages/scss.js +114 -0
- data/vendor/assets/javascripts/highlight_js/languages/smalltalk.js +56 -0
- data/vendor/assets/javascripts/highlight_js/languages/sql.js +64 -0
- data/vendor/assets/javascripts/highlight_js/languages/tex.js +58 -0
- data/vendor/assets/javascripts/highlight_js/languages/vala.js +64 -0
- data/vendor/assets/javascripts/highlight_js/languages/vbnet.js +54 -0
- data/vendor/assets/javascripts/highlight_js/languages/vbscript.js +40 -0
- data/vendor/assets/javascripts/highlight_js/languages/vhdl.js +49 -0
- data/vendor/assets/javascripts/highlight_js/languages/xml.js +107 -0
- data/vendor/assets/stylesheets/highlight_js/arta.css +159 -0
- data/vendor/assets/stylesheets/highlight_js/ascetic.css +50 -0
- data/vendor/assets/stylesheets/highlight_js/brown_paper.css +104 -0
- data/vendor/assets/stylesheets/highlight_js/dark.css +104 -0
- data/vendor/assets/stylesheets/highlight_js/default.css +149 -0
- data/vendor/assets/stylesheets/highlight_js/docco.css +131 -0
- data/vendor/assets/stylesheets/highlight_js/far.css +112 -0
- data/vendor/assets/stylesheets/highlight_js/foundation.css +113 -0
- data/vendor/assets/stylesheets/highlight_js/github.css +129 -0
- data/vendor/assets/stylesheets/highlight_js/googlecode.css +145 -0
- data/vendor/assets/stylesheets/highlight_js/idea.css +121 -0
- data/vendor/assets/stylesheets/highlight_js/ir_black.css +105 -0
- data/vendor/assets/stylesheets/highlight_js/magula.css +122 -0
- data/vendor/assets/stylesheets/highlight_js/mono-blue.css +59 -0
- data/vendor/assets/stylesheets/highlight_js/monokai.css +124 -0
- data/vendor/assets/stylesheets/highlight_js/monokai_sublime.css +101 -0
- data/vendor/assets/stylesheets/highlight_js/obsidian.css +153 -0
- data/vendor/assets/stylesheets/highlight_js/pojoaque.css +104 -0
- data/vendor/assets/stylesheets/highlight_js/railscasts.css +181 -0
- data/vendor/assets/stylesheets/highlight_js/rainbow.css +114 -0
- data/vendor/assets/stylesheets/highlight_js/school_book.css +112 -0
- data/vendor/assets/stylesheets/highlight_js/solarized_dark.css +91 -0
- data/vendor/assets/stylesheets/highlight_js/solarized_light.css +91 -0
- data/vendor/assets/stylesheets/highlight_js/sunburst.css +159 -0
- data/vendor/assets/stylesheets/highlight_js/tomorrow-night-blue.css +52 -0
- data/vendor/assets/stylesheets/highlight_js/tomorrow-night-bright.css +51 -0
- data/vendor/assets/stylesheets/highlight_js/tomorrow-night-eighties.css +51 -0
- data/vendor/assets/stylesheets/highlight_js/tomorrow-night.css +52 -0
- data/vendor/assets/stylesheets/highlight_js/tomorrow.css +49 -0
- data/vendor/assets/stylesheets/highlight_js/vs.css +88 -0
- data/vendor/assets/stylesheets/highlight_js/xcode.css +156 -0
- data/vendor/assets/stylesheets/highlight_js/zenburn.css +116 -0
- metadata +172 -0
data/classref.txt
ADDED
@@ -0,0 +1,676 @@
|
|
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
|
+
built_in built-in 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
|
+
prompt interpreter prompt (>>> or ...)
|
30
|
+
|
31
|
+
Ruby ("ruby"):
|
32
|
+
|
33
|
+
keyword keyword
|
34
|
+
string string
|
35
|
+
subst in-string substitution (#{...})
|
36
|
+
comment comment
|
37
|
+
yardoctag YARD tag
|
38
|
+
function function header "def some_name(...):"
|
39
|
+
class class header "class SomeName(...):"
|
40
|
+
title name of a function or a class inside a header
|
41
|
+
parent name of a parent class
|
42
|
+
symbol symbol
|
43
|
+
|
44
|
+
Haml ("haml"):
|
45
|
+
|
46
|
+
tag any tag starting with "%"
|
47
|
+
title tag's name
|
48
|
+
attribute tag's attribute
|
49
|
+
keyword tag's attribute that is a keyword
|
50
|
+
string attribute's value that is a string
|
51
|
+
value attribute's value, shorthand id or class for tag
|
52
|
+
comment comment
|
53
|
+
doctype !!! declaration
|
54
|
+
bullet line defined by variable
|
55
|
+
|
56
|
+
Perl ("perl"):
|
57
|
+
|
58
|
+
keyword keyword
|
59
|
+
comment comment
|
60
|
+
number number
|
61
|
+
string string
|
62
|
+
regexp regular expression
|
63
|
+
sub subroutine header (from "sub" till "{")
|
64
|
+
variable variable starting with "$", "%", "@"
|
65
|
+
operator operator
|
66
|
+
pod plain old doc
|
67
|
+
|
68
|
+
PHP ("php"):
|
69
|
+
|
70
|
+
keyword keyword
|
71
|
+
number number
|
72
|
+
string string (of any type)
|
73
|
+
comment comment
|
74
|
+
phpdoc phpdoc params in comments
|
75
|
+
variable variable starting with "$"
|
76
|
+
preprocessor preprocessor marks: "<?php" and "?>"
|
77
|
+
|
78
|
+
Scala ("scala"):
|
79
|
+
|
80
|
+
keyword keyword
|
81
|
+
number number
|
82
|
+
string string
|
83
|
+
comment comment
|
84
|
+
annotation annotation
|
85
|
+
javadoc javadoc comment
|
86
|
+
javadoctag @-tag in javadoc
|
87
|
+
class class header
|
88
|
+
title class name inside a header
|
89
|
+
params everything in parentheses inside a class header
|
90
|
+
inheritance keywords "extends" and "with" inside class header
|
91
|
+
|
92
|
+
Go language ("go"):
|
93
|
+
comment comment
|
94
|
+
string string constant
|
95
|
+
number number
|
96
|
+
keyword language keywords
|
97
|
+
constant true false nil iota
|
98
|
+
typename built-in plain types (int, string etc.)
|
99
|
+
built_in built-in functions
|
100
|
+
|
101
|
+
HTML, XML ("xml"):
|
102
|
+
|
103
|
+
tag any tag from "<" till ">"
|
104
|
+
attribute tag's attribute with or without value
|
105
|
+
value attribute's value
|
106
|
+
comment comment
|
107
|
+
pi processing instruction (<? ... ?>)
|
108
|
+
doctype <!DOCTYPE ... > declaration
|
109
|
+
cdata CDATA section
|
110
|
+
|
111
|
+
Lasso ("lasso"):
|
112
|
+
|
113
|
+
preprocessor delimiters and interpreter flags
|
114
|
+
shebang Lasso 9 shell script header
|
115
|
+
comment single- or multi-line comment
|
116
|
+
javadoc doc comment
|
117
|
+
keyword keyword
|
118
|
+
literal keyword representing a value
|
119
|
+
built_in built-in types and variables
|
120
|
+
number number
|
121
|
+
string string
|
122
|
+
variable variable reference starting with "#" or "$"
|
123
|
+
tag tag literal
|
124
|
+
attribute named or rest parameter in method signature
|
125
|
+
class type, trait, or method header
|
126
|
+
title name following "define" inside a header
|
127
|
+
|
128
|
+
CSS ("css"):
|
129
|
+
|
130
|
+
tag tag in selectors
|
131
|
+
id #some_name in selectors
|
132
|
+
class .some_name in selectors
|
133
|
+
at_rule @-rule till first "{" or ";"
|
134
|
+
attr_selector attribute selector (square brackets in a[href^=http://])
|
135
|
+
pseudo pseudo classes and elemens (:after, ::after etc.)
|
136
|
+
comment comment
|
137
|
+
rules everything from "{" till "}"
|
138
|
+
attribute property name inside a rule
|
139
|
+
value property value inside a rule, from ":" till ";" or
|
140
|
+
till the end of rule block
|
141
|
+
number number within a value
|
142
|
+
string string within a value
|
143
|
+
hexcolor hex color (#FFFFFF) within a value
|
144
|
+
function CSS function within a value
|
145
|
+
important "!important" symbol
|
146
|
+
|
147
|
+
SCSS ("scss")
|
148
|
+
|
149
|
+
tag tag in selectors
|
150
|
+
id #some_name in selectors
|
151
|
+
class .some_name in selectors
|
152
|
+
at_rule @-rule till first "{" or ";"
|
153
|
+
attr_selector attribute selector (square brackets in a[href^=http://])
|
154
|
+
pseudo pseudo classes and elemens (:after, ::after etc.)
|
155
|
+
comment comment
|
156
|
+
rules everything from "{" till "}"
|
157
|
+
attribute property name inside a rule
|
158
|
+
value property value inside a rule, from ":" till ";" or
|
159
|
+
till the end of rule block
|
160
|
+
number number within a value
|
161
|
+
string string within a value
|
162
|
+
hexcolor hex color (#FFFFFF) within a value
|
163
|
+
function CSS function within a value
|
164
|
+
important "!important" symbol
|
165
|
+
variable variable starting with "$"
|
166
|
+
preprocessor keywords after @
|
167
|
+
|
168
|
+
Markdown ("markdown"):
|
169
|
+
|
170
|
+
header header
|
171
|
+
bullet list bullet
|
172
|
+
emphasis emphasis
|
173
|
+
strong strong emphasis
|
174
|
+
blockquote blockquote
|
175
|
+
code code
|
176
|
+
horizontal_rule horizontal rule
|
177
|
+
link_label link label
|
178
|
+
link_url link url
|
179
|
+
|
180
|
+
AsciiDoc ("asciidoc"):
|
181
|
+
|
182
|
+
header heading
|
183
|
+
bullet list or labeled bullet
|
184
|
+
emphasis emphasis
|
185
|
+
strong strong emphasis
|
186
|
+
blockquote blockquote
|
187
|
+
code inline or block code
|
188
|
+
horizontal_rule horizontal rule
|
189
|
+
link_label link or image label
|
190
|
+
link_url link or image url
|
191
|
+
comment comment
|
192
|
+
attribute document attribute, block attributes
|
193
|
+
label admonition label
|
194
|
+
|
195
|
+
Django ("django"):
|
196
|
+
|
197
|
+
keyword HTML tag in HTML, default tags and default filters in templates
|
198
|
+
tag any tag from "<" till ">"
|
199
|
+
comment comment
|
200
|
+
doctype <!DOCTYPE ... > declaration
|
201
|
+
attribute tag's attribute with or withou value
|
202
|
+
value attribute's value
|
203
|
+
template_tag template tag {% .. %}
|
204
|
+
variable template variable {{ .. }}
|
205
|
+
template_comment template comment, both {# .. #} and {% comment %}
|
206
|
+
filter filter from "|" till the next filter or the end of tag
|
207
|
+
argument filter argument
|
208
|
+
|
209
|
+
Handlebars ("handlebars"):
|
210
|
+
|
211
|
+
expression expression to be evaluated
|
212
|
+
variable variable
|
213
|
+
begin-block the beginning of a block
|
214
|
+
end-block the ending of a block
|
215
|
+
string string
|
216
|
+
|
217
|
+
JSON ("json"):
|
218
|
+
|
219
|
+
number number
|
220
|
+
literal "true", "false" and "null"
|
221
|
+
string string value
|
222
|
+
attribute name of an object property
|
223
|
+
value value of an object property
|
224
|
+
|
225
|
+
JavaScript ("javascript"):
|
226
|
+
|
227
|
+
keyword keyword
|
228
|
+
comment comment
|
229
|
+
number number
|
230
|
+
literal special literal: "true", "false" and "null"
|
231
|
+
string string
|
232
|
+
regexp regular expression
|
233
|
+
function header of a function
|
234
|
+
title name of a function inside a header
|
235
|
+
params parentheses and everything inside them in a function's header
|
236
|
+
|
237
|
+
CoffeeScript ("coffeescript"):
|
238
|
+
|
239
|
+
keyword keyword
|
240
|
+
comment comment
|
241
|
+
number number
|
242
|
+
literal special literal: "true", "false" and "null"
|
243
|
+
built_in built-in objects and functions ("window", "console", "require", etc...)
|
244
|
+
string string
|
245
|
+
subst #{ ... } interpolation in double-quoted strings
|
246
|
+
regexp regular expression
|
247
|
+
function header of a function
|
248
|
+
class header of a class
|
249
|
+
title name of a function variable inside a header
|
250
|
+
params parentheses and everything inside them in a function's header
|
251
|
+
property @-property within class and functions
|
252
|
+
|
253
|
+
ActionScript ("actionscript"):
|
254
|
+
|
255
|
+
comment comment
|
256
|
+
string string
|
257
|
+
number number
|
258
|
+
keyword keywords
|
259
|
+
literal literal
|
260
|
+
reserved reserved keyword
|
261
|
+
title name of declaration (package, class or function)
|
262
|
+
preprocessor preprocessor directive (import, include)
|
263
|
+
type type of returned value (for functions)
|
264
|
+
package package (named or not)
|
265
|
+
class class/interface
|
266
|
+
function function
|
267
|
+
param params of function
|
268
|
+
rest_arg rest argument of function
|
269
|
+
|
270
|
+
VBScript ("vbscript"):
|
271
|
+
|
272
|
+
keyword keyword
|
273
|
+
number number
|
274
|
+
string string
|
275
|
+
comment comment
|
276
|
+
built_in built-in function
|
277
|
+
|
278
|
+
VB.Net ("vbnet"):
|
279
|
+
|
280
|
+
keyword keyword
|
281
|
+
built_in built-in types
|
282
|
+
literal "true", "false" and "nothing"
|
283
|
+
string string
|
284
|
+
comment comment
|
285
|
+
xmlDocTag xmldoc tag ("'''", "<!--", "-->", "<..>")
|
286
|
+
preprocessor preprocessor directive
|
287
|
+
|
288
|
+
HTTP ("http"):
|
289
|
+
|
290
|
+
request first line of a request
|
291
|
+
status first line of a response
|
292
|
+
attribute header name
|
293
|
+
string header value or query string in a request line
|
294
|
+
number status code
|
295
|
+
|
296
|
+
Lua ("lua"):
|
297
|
+
|
298
|
+
keyword keyword
|
299
|
+
number number
|
300
|
+
string string
|
301
|
+
comment comment
|
302
|
+
built_in built-in operator
|
303
|
+
function header of a function
|
304
|
+
title name of a function inside a header
|
305
|
+
params everything inside parentheses in a function's header
|
306
|
+
long_brackets multiline string in [=[ .. ]=]
|
307
|
+
|
308
|
+
Delphi ("delphi"):
|
309
|
+
|
310
|
+
keyword keyword
|
311
|
+
comment comment (of any type)
|
312
|
+
number number
|
313
|
+
string string
|
314
|
+
function header of a function, procedure, constructor and destructor
|
315
|
+
title name of a function, procedure, constructor or destructor
|
316
|
+
inside a header
|
317
|
+
params everything inside parentheses in a function's header
|
318
|
+
class class' body from "= class" till "end;"
|
319
|
+
|
320
|
+
Java ("java"):
|
321
|
+
|
322
|
+
keyword keyword
|
323
|
+
number number
|
324
|
+
string string
|
325
|
+
comment commment
|
326
|
+
annotaion annotation
|
327
|
+
javadoc javadoc comment
|
328
|
+
class class header from "class" till "{"
|
329
|
+
title class name inside a header
|
330
|
+
params everything in parentheses inside a class header
|
331
|
+
inheritance keywords "extends" and "implements" inside class header
|
332
|
+
|
333
|
+
C++ ("cpp"):
|
334
|
+
|
335
|
+
keyword keyword
|
336
|
+
number number
|
337
|
+
string string and character
|
338
|
+
comment comment
|
339
|
+
preprocessor preprocessor directive
|
340
|
+
stl_container instantiation of STL containers ("vector<...>")
|
341
|
+
|
342
|
+
Objective C ("objectivec"):
|
343
|
+
keyword keyword
|
344
|
+
built_in Cocoa/Cocoa Touch constants and classes
|
345
|
+
number number
|
346
|
+
string string
|
347
|
+
comment comment
|
348
|
+
preprocessor preprocessor directive
|
349
|
+
class interface/implementation, protocol and forward class declaration
|
350
|
+
variable properties and struct accesors
|
351
|
+
|
352
|
+
Vala ("vala"):
|
353
|
+
|
354
|
+
keyword keyword
|
355
|
+
number number
|
356
|
+
string string
|
357
|
+
comment comment
|
358
|
+
class class definitions
|
359
|
+
title in class definition
|
360
|
+
constant ALL_UPPER_CASE
|
361
|
+
|
362
|
+
C# ("cs"):
|
363
|
+
|
364
|
+
keyword keyword
|
365
|
+
number number
|
366
|
+
string string
|
367
|
+
comment commment
|
368
|
+
xmlDocTag xmldoc tag ("///", "<!--", "-->", "<..>")
|
369
|
+
|
370
|
+
F# ("fsharp"):
|
371
|
+
keywords keyword
|
372
|
+
number number
|
373
|
+
string string
|
374
|
+
commment comment
|
375
|
+
class any custom F# type
|
376
|
+
title the name of a custom F# type
|
377
|
+
annotation any attribute
|
378
|
+
|
379
|
+
D language ("d"):
|
380
|
+
|
381
|
+
comment comment
|
382
|
+
string string constant
|
383
|
+
number number
|
384
|
+
keyword language keywords (including @attributes)
|
385
|
+
constant true false null
|
386
|
+
built_in built-in plain types (int, string etc.)
|
387
|
+
|
388
|
+
RenderMan RSL ("rsl"):
|
389
|
+
|
390
|
+
keyword keyword
|
391
|
+
number number
|
392
|
+
string string (including @"..")
|
393
|
+
comment comment
|
394
|
+
preprocessor preprocessor directive
|
395
|
+
shader sahder keywords
|
396
|
+
shading shading keywords
|
397
|
+
built_in built-in function
|
398
|
+
|
399
|
+
RenderMan RIB ("rib"):
|
400
|
+
|
401
|
+
keyword keyword
|
402
|
+
number number
|
403
|
+
string string
|
404
|
+
comment comment
|
405
|
+
commands command
|
406
|
+
|
407
|
+
Maya Embedded Language ("mel"):
|
408
|
+
|
409
|
+
keyword keyword
|
410
|
+
number number
|
411
|
+
string string
|
412
|
+
comment comment
|
413
|
+
variable variable
|
414
|
+
|
415
|
+
SQL ("sql"):
|
416
|
+
|
417
|
+
keyword keyword (mostly SQL'92 and SQL'99)
|
418
|
+
number number
|
419
|
+
string string (of any type: "..", '..', `..`)
|
420
|
+
comment comment
|
421
|
+
aggregate aggregate function
|
422
|
+
|
423
|
+
Smalltalk ("smalltalk"):
|
424
|
+
|
425
|
+
keyword keyword
|
426
|
+
number number
|
427
|
+
string string
|
428
|
+
comment commment
|
429
|
+
symbol symbol
|
430
|
+
array array
|
431
|
+
class name of a class
|
432
|
+
char char
|
433
|
+
localvars block of local variables
|
434
|
+
|
435
|
+
Lisp ("lisp"):
|
436
|
+
|
437
|
+
keyword keyword
|
438
|
+
number number
|
439
|
+
string string
|
440
|
+
comment commment
|
441
|
+
variable variable
|
442
|
+
literal b, t and nil
|
443
|
+
list non-quoted list
|
444
|
+
title first symbol in a non-quoted list
|
445
|
+
body remainder of the non-quoted list
|
446
|
+
quoted quoted list, both "(quote .. )" and "'(..)"
|
447
|
+
|
448
|
+
Clojure ("clojure"):
|
449
|
+
|
450
|
+
comment comments and hints
|
451
|
+
string string
|
452
|
+
number number
|
453
|
+
collection collections
|
454
|
+
attribute :keyword
|
455
|
+
title function name (built-in or user defined)
|
456
|
+
built_in built-in function name
|
457
|
+
|
458
|
+
Ini ("ini"):
|
459
|
+
|
460
|
+
title title of a section
|
461
|
+
value value of a setting of any type
|
462
|
+
string string
|
463
|
+
number number
|
464
|
+
keyword boolean value keyword
|
465
|
+
|
466
|
+
Apache ("apache"):
|
467
|
+
|
468
|
+
keyword keyword
|
469
|
+
number number
|
470
|
+
comment commment
|
471
|
+
literal On and Off
|
472
|
+
sqbracket variables in rewrites "%{..}"
|
473
|
+
cbracket options in rewrites "[..]"
|
474
|
+
tag begin and end of a configuration section
|
475
|
+
|
476
|
+
Nginx ("nginx"):
|
477
|
+
|
478
|
+
title directive title
|
479
|
+
string string
|
480
|
+
number number
|
481
|
+
comment comment
|
482
|
+
built_in built-in constant
|
483
|
+
variable $-variable
|
484
|
+
regexp regexp
|
485
|
+
|
486
|
+
Diff ("diff"):
|
487
|
+
|
488
|
+
header file header
|
489
|
+
chunk chunk header within a file
|
490
|
+
addition added lines
|
491
|
+
deletion deleted lines
|
492
|
+
change changed lines
|
493
|
+
|
494
|
+
DOS ("dos"):
|
495
|
+
|
496
|
+
keyword keyword
|
497
|
+
flow batch control keyword
|
498
|
+
stream DOS special files ("con", "prn", ...)
|
499
|
+
winutils some commands (see dos.js specifically)
|
500
|
+
envvar environment variables
|
501
|
+
|
502
|
+
Bash ("bash"):
|
503
|
+
|
504
|
+
keyword keyword
|
505
|
+
string string
|
506
|
+
number number
|
507
|
+
comment comment
|
508
|
+
literal special literal: "true" и "false"
|
509
|
+
variable variable
|
510
|
+
shebang script interpreter header
|
511
|
+
|
512
|
+
CMake ("cmake")
|
513
|
+
|
514
|
+
keyword keyword
|
515
|
+
number number
|
516
|
+
string string
|
517
|
+
comment commment
|
518
|
+
envvar $-variable
|
519
|
+
|
520
|
+
Axapta ("axapta"):
|
521
|
+
|
522
|
+
keyword keyword
|
523
|
+
number number
|
524
|
+
string string
|
525
|
+
comment commment
|
526
|
+
class class header from "class" till "{"
|
527
|
+
title class name inside a header
|
528
|
+
params everything in parentheses inside a class header
|
529
|
+
inheritance keywords "extends" and "implements" inside class header
|
530
|
+
preprocessor preprocessor directive
|
531
|
+
|
532
|
+
Oracle Rules Language ("ruleslanguage"):
|
533
|
+
|
534
|
+
comment comment
|
535
|
+
string string constant
|
536
|
+
number number
|
537
|
+
keyword language keywords
|
538
|
+
built_in built-in functions
|
539
|
+
array array stem
|
540
|
+
|
541
|
+
1C ("1c"):
|
542
|
+
|
543
|
+
keyword keyword
|
544
|
+
number number
|
545
|
+
date date
|
546
|
+
string string
|
547
|
+
comment commment
|
548
|
+
function header of function or procudure
|
549
|
+
title function name inside a header
|
550
|
+
params everything in parentheses inside a function header
|
551
|
+
preprocessor preprocessor directive
|
552
|
+
|
553
|
+
AVR assembler ("avrasm"):
|
554
|
+
|
555
|
+
keyword keyword
|
556
|
+
built_in pre-defined register
|
557
|
+
number number
|
558
|
+
string string
|
559
|
+
comment commment
|
560
|
+
label label
|
561
|
+
preprocessor preprocessor directive
|
562
|
+
localvars substitution in .macro
|
563
|
+
|
564
|
+
VHDL ("vhdl")
|
565
|
+
|
566
|
+
keyword keyword
|
567
|
+
number number
|
568
|
+
string string
|
569
|
+
comment commment
|
570
|
+
literal signal logical value
|
571
|
+
typename typename
|
572
|
+
attribute signal attribute
|
573
|
+
|
574
|
+
Parser3 ("parser3"):
|
575
|
+
|
576
|
+
keyword keyword
|
577
|
+
number number
|
578
|
+
comment commment
|
579
|
+
variable variable starting with "$"
|
580
|
+
preprocessor preprocessor directive
|
581
|
+
title user-defined name starting with "@"
|
582
|
+
|
583
|
+
TeX ("tex"):
|
584
|
+
|
585
|
+
comment comment
|
586
|
+
number number
|
587
|
+
command command
|
588
|
+
parameter parameter
|
589
|
+
formula formula
|
590
|
+
special special symbol
|
591
|
+
|
592
|
+
Haskell ("haskell"):
|
593
|
+
|
594
|
+
keyword keyword
|
595
|
+
number number
|
596
|
+
string string
|
597
|
+
comment comment
|
598
|
+
class type classes and other data types
|
599
|
+
title function name
|
600
|
+
type type class name
|
601
|
+
typedef definition of types (type, newtype, data)
|
602
|
+
|
603
|
+
Erlang ("erlang"):
|
604
|
+
|
605
|
+
comment comment
|
606
|
+
string string
|
607
|
+
number number
|
608
|
+
keyword keyword
|
609
|
+
record_name record access (#record_name)
|
610
|
+
title name of declaration function
|
611
|
+
variable variable (starts with capital letter or with _)
|
612
|
+
pp.keywords module's attribute (-attribute)
|
613
|
+
function_name atom or atom:atom in case of function call
|
614
|
+
|
615
|
+
Rust ("rust"):
|
616
|
+
|
617
|
+
comment comment
|
618
|
+
string string
|
619
|
+
number number
|
620
|
+
keyword keyword
|
621
|
+
title name of declaration
|
622
|
+
preprocessor preprocessor directive
|
623
|
+
|
624
|
+
Matlab ("matlab"):
|
625
|
+
|
626
|
+
comment comment
|
627
|
+
string string
|
628
|
+
number number
|
629
|
+
keyword keyword
|
630
|
+
title function name
|
631
|
+
function function
|
632
|
+
param params of function
|
633
|
+
matrix matrix in [ .. ]
|
634
|
+
cell cell in { .. }
|
635
|
+
|
636
|
+
R ("r"):
|
637
|
+
|
638
|
+
comment comment
|
639
|
+
string string constant
|
640
|
+
number number
|
641
|
+
keyword language keywords (function, if) plus "structural"
|
642
|
+
functions (attach, require, setClass)
|
643
|
+
literal special literal: TRUE, FALSE, NULL, NA, etc.
|
644
|
+
|
645
|
+
OpenGL Shading Language ("glsl"):
|
646
|
+
|
647
|
+
comment comment
|
648
|
+
number number
|
649
|
+
preprocessor preprocessor directive
|
650
|
+
keyword keyword
|
651
|
+
built_in GLSL built-in functions and variables
|
652
|
+
literal true false
|
653
|
+
|
654
|
+
AppleScript ("applescript"):
|
655
|
+
|
656
|
+
keyword keyword
|
657
|
+
command core AppleScript command
|
658
|
+
constant AppleScript built in constant
|
659
|
+
type AppleScript variable type (integer, etc.)
|
660
|
+
property Applescript built in property (length, etc.)
|
661
|
+
number number
|
662
|
+
string string
|
663
|
+
comment comment
|
664
|
+
title name of a handler
|
665
|
+
|
666
|
+
Brainfuck ("brainfuck"):
|
667
|
+
|
668
|
+
title Brainfuck while loop command
|
669
|
+
literal Brainfuck inc and dec commands
|
670
|
+
comment comment
|
671
|
+
string Brainfuck input and output commands
|
672
|
+
|
673
|
+
Mizar ("mizar"):
|
674
|
+
|
675
|
+
keyword keyword
|
676
|
+
comment comment
|
@@ -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\nMorphemass"]
|
6
|
+
gem.email = ["morphemass@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/os6sense/highlight_js-rails4"
|
10
|
+
|
11
|
+
gem.add_dependency "rails", ">= 4.0.0"
|
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-rails4"
|
17
|
+
gem.require_paths = ["lib"]
|
18
|
+
gem.version = HighlightJs::Rails::VERSION
|
19
|
+
end
|