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
@@ -0,0 +1,103 @@
1
+ /*
2
+ IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>
3
+ */
4
+
5
+ pre code {
6
+ display: block; padding: 0.5em;
7
+ background: #000; color: #f8f8f8;
8
+ }
9
+
10
+ pre .shebang,
11
+ pre .comment,
12
+ pre .template_comment,
13
+ pre .javadoc {
14
+ color: #7c7c7c;
15
+ }
16
+
17
+ pre .keyword,
18
+ pre .tag,
19
+ pre .ruby .function .keyword,
20
+ pre .tex .command {
21
+ color: #96CBFE;
22
+ }
23
+
24
+ pre .function .keyword,
25
+ pre .sub .keyword,
26
+ pre .method,
27
+ pre .list .title {
28
+ color: #FFFFB6;
29
+ }
30
+
31
+ pre .string,
32
+ pre .tag .value,
33
+ pre .cdata,
34
+ pre .filter .argument,
35
+ pre .attr_selector,
36
+ pre .apache .cbracket,
37
+ pre .date {
38
+ color: #A8FF60;
39
+ }
40
+
41
+ pre .subst {
42
+ color: #DAEFA3;
43
+ }
44
+
45
+ pre .regexp {
46
+ color: #E9C062;
47
+ }
48
+
49
+ pre .function .title,
50
+ pre .sub .identifier,
51
+ pre .pi,
52
+ pre .decorator,
53
+ pre .ini .title,
54
+ pre .tex .special {
55
+ color: #FFFFB6;
56
+ }
57
+
58
+ pre .class .title,
59
+ pre .haskell .label,
60
+ pre .constant,
61
+ pre .smalltalk .class,
62
+ pre .javadoctag,
63
+ pre .yardoctag,
64
+ pre .phpdoc,
65
+ pre .nginx .built_in {
66
+ color: #FFFFB6;
67
+ }
68
+
69
+ pre .symbol,
70
+ pre .ruby .symbol .string,
71
+ pre .ruby .symbol .keyword,
72
+ pre .ruby .symbol .keymethods,
73
+ pre .number,
74
+ pre .variable,
75
+ pre .vbscript,
76
+ pre .literal {
77
+ color: #C6C5FE;
78
+ }
79
+
80
+ pre .css .tag {
81
+ color: #96CBFE;
82
+ }
83
+
84
+ pre .css .rules .property,
85
+ pre .css .id {
86
+ color: #FFFFB6;
87
+ }
88
+
89
+ pre .css .class {
90
+ color: #FFF;
91
+ }
92
+
93
+ pre .hexcolor {
94
+ color: #C6C5FE;
95
+ }
96
+
97
+ pre .number {
98
+ color:#FF73FD;
99
+ }
100
+
101
+ pre .tex .formula {
102
+ opacity: 0.7;
103
+ }
@@ -0,0 +1,118 @@
1
+ /*
2
+ Description: Magula style for highligh.js
3
+ Author: Ruslan Keba <rukeba@gmail.com>
4
+ Website: http://rukeba.com/
5
+ Version: 1.0
6
+ Date: 2009-01-03
7
+ Music: Aphex Twin / Xtal
8
+ */
9
+
10
+ pre code {
11
+ display: block; padding: 0.5em;
12
+ background-color: #f4f4f4;
13
+ }
14
+
15
+ pre code,
16
+ pre .ruby .subst,
17
+ pre .lisp .title {
18
+ color: black;
19
+ }
20
+
21
+ pre .string,
22
+ pre .title,
23
+ pre .parent,
24
+ pre .tag .value,
25
+ pre .rules .value,
26
+ pre .rules .value .number,
27
+ pre .preprocessor,
28
+ pre .ruby .symbol,
29
+ pre .ruby .symbol .string,
30
+ pre .ruby .symbol .keyword,
31
+ pre .ruby .symbol .keymethods,
32
+ pre .instancevar,
33
+ pre .aggregate,
34
+ pre .template_tag,
35
+ pre .django .variable,
36
+ pre .smalltalk .class,
37
+ pre .addition,
38
+ pre .flow,
39
+ pre .stream,
40
+ pre .bash .variable,
41
+ pre .apache .cbracket {
42
+ color: #050;
43
+ }
44
+
45
+ pre .comment,
46
+ pre .annotation,
47
+ pre .template_comment,
48
+ pre .diff .header,
49
+ pre .chunk {
50
+ color: #777;
51
+ }
52
+
53
+ pre .number,
54
+ pre .date,
55
+ pre .regexp,
56
+ pre .literal,
57
+ pre .smalltalk .symbol,
58
+ pre .smalltalk .char,
59
+ pre .change,
60
+ pre .tex .special {
61
+ color: #800;
62
+ }
63
+
64
+ pre .label,
65
+ pre .javadoc,
66
+ pre .ruby .string,
67
+ pre .decorator,
68
+ pre .filter .argument,
69
+ pre .localvars,
70
+ pre .array,
71
+ pre .attr_selector,
72
+ pre .pseudo,
73
+ pre .pi,
74
+ pre .doctype,
75
+ pre .deletion,
76
+ pre .envvar,
77
+ pre .shebang,
78
+ pre .apache .sqbracket,
79
+ pre .nginx .built_in,
80
+ pre .tex .formula,
81
+ pre .input_number {
82
+ color: #00e;
83
+ }
84
+
85
+ pre .keyword,
86
+ pre .id,
87
+ pre .phpdoc,
88
+ pre .title,
89
+ pre .built_in,
90
+ pre .aggregate,
91
+ pre .smalltalk .class,
92
+ pre .winutils,
93
+ pre .bash .variable,
94
+ pre .apache .tag,
95
+ pre .xml .tag,
96
+ pre .xml .title,
97
+ pre .tex .command {
98
+ font-weight: bold;
99
+ color: navy;
100
+ }
101
+
102
+ pre .nginx .built_in {
103
+ font-weight: normal;
104
+ }
105
+
106
+ pre .xml .css,
107
+ pre .xml .javascript,
108
+ pre .xml .vbscript,
109
+ pre .tex .formula {
110
+ opacity: 0.5;
111
+ }
112
+
113
+ /* --- */
114
+ pre .apache .tag {
115
+ font-weight: bold;
116
+ color: blue;
117
+ }
118
+
@@ -0,0 +1,111 @@
1
+ /*
2
+
3
+ School Book style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 15px 0.5em 0.5em 30px;
9
+ font-size: 11px !important;
10
+ line-height:16px !important;
11
+ }
12
+
13
+ pre{
14
+ background:#f6f6ae url(<%= asset_path 'highlight_js/school_book.png' %>);
15
+ border-top: solid 2px #d2e8b9;
16
+ border-bottom: solid 1px #d2e8b9;
17
+ }
18
+
19
+ pre .keyword,
20
+ pre .literal,
21
+ pre .change,
22
+ pre .winutils,
23
+ pre .flow,
24
+ pre .lisp .title,
25
+ pre .tex .special {
26
+ color:#005599;
27
+ font-weight:bold;
28
+ }
29
+
30
+ pre code,
31
+ pre .ruby .subst,
32
+ pre .tag .keyword {
33
+ color: #3E5915;
34
+ }
35
+
36
+ pre .string,
37
+ pre .function .title,
38
+ pre .class .title,
39
+ pre .haskell .label,
40
+ pre .ini .title,
41
+ pre .tag .value,
42
+ pre .css .rules .value,
43
+ pre .preprocessor,
44
+ pre .ruby .symbol,
45
+ pre .ruby .symbol .string,
46
+ pre .ruby .symbol .keyword,
47
+ pre .ruby .symbol .keymethods,
48
+ pre .ruby .instancevar,
49
+ pre .ruby .class .parent,
50
+ pre .built_in,
51
+ pre .sql .aggregate,
52
+ pre .django .template_tag,
53
+ pre .django .variable,
54
+ pre .smalltalk .class,
55
+ pre .javadoc,
56
+ pre .ruby .string,
57
+ pre .django .filter .argument,
58
+ pre .smalltalk .localvars,
59
+ pre .smalltalk .array,
60
+ pre .attr_selector,
61
+ pre .pseudo,
62
+ pre .addition,
63
+ pre .stream,
64
+ pre .envvar,
65
+ pre .apache .tag,
66
+ pre .apache .cbracket,
67
+ pre .nginx .built_in,
68
+ pre .tex .command {
69
+ color: #2C009F;
70
+ }
71
+
72
+ pre .comment,
73
+ pre .java .annotation,
74
+ pre .python .decorator,
75
+ pre .template_comment,
76
+ pre .pi,
77
+ pre .doctype,
78
+ pre .deletion,
79
+ pre .shebang,
80
+ pre .apache .sqbracket {
81
+ color: #E60415;
82
+ }
83
+
84
+ pre .keyword,
85
+ pre .literal,
86
+ pre .css .id,
87
+ pre .phpdoc,
88
+ pre .function .title,
89
+ pre .class .title,
90
+ pre .haskell .label,
91
+ pre .vbscript .built_in,
92
+ pre .sql .aggregate,
93
+ pre .rsl .built_in,
94
+ pre .smalltalk .class,
95
+ pre .xml .tag .title,
96
+ pre .diff .header,
97
+ pre .chunk,
98
+ pre .winutils,
99
+ pre .bash .variable,
100
+ pre .lisp .title,
101
+ pre .apache .tag,
102
+ pre .tex .command {
103
+ font-weight: bold;
104
+ }
105
+
106
+ pre .xml .css,
107
+ pre .xml .javascript,
108
+ pre .xml .vbscript,
109
+ pre .tex .formula {
110
+ opacity: 0.5;
111
+ }
@@ -0,0 +1,96 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #002b36; color: #839496;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .diff .header,
15
+ pre .doctype,
16
+ pre .lisp .string,
17
+ pre .javadoc {
18
+ color: #586e75;
19
+ font-style: italic;
20
+ }
21
+
22
+ pre .keyword,
23
+ pre .css .rule .keyword,
24
+ pre .winutils,
25
+ pre .javascript .title,
26
+ pre .method,
27
+ pre .addition,
28
+ pre .css .tag,
29
+ pre .lisp .title {
30
+ color: #859900;
31
+ }
32
+
33
+ pre .number,
34
+ pre .command,
35
+ pre .string,
36
+ pre .tag .value,
37
+ pre .phpdoc,
38
+ pre .tex .formula,
39
+ pre .regexp,
40
+ pre .hexcolor {
41
+ color: #2aa198;
42
+ }
43
+
44
+ pre .title,
45
+ pre .localvars,
46
+ pre .function .title,
47
+ pre .chunk,
48
+ pre .decorator,
49
+ pre .builtin,
50
+ pre .built_in,
51
+ pre .lisp .title,
52
+ pre .identifier,
53
+ pre .title .keymethods,
54
+ pre .id {
55
+ color: #268bd2;
56
+ }
57
+
58
+ pre .tag .title,
59
+ pre .rules .property,
60
+ pre .django .tag .keyword {
61
+ font-weight: bold;
62
+ }
63
+
64
+ pre .attribute,
65
+ pre .variable,
66
+ pre .instancevar,
67
+ pre .lisp .body,
68
+ pre .smalltalk .number,
69
+ pre .constant,
70
+ pre .class .title,
71
+ pre .parent,
72
+ pre .haskell .label {
73
+ color: #b58900;
74
+ }
75
+
76
+ pre .preprocessor,
77
+ pre .pi,
78
+ pre .shebang,
79
+ pre .symbol,
80
+ pre .diff .change,
81
+ pre .special,
82
+ pre .keymethods,
83
+ pre .attr_selector,
84
+ pre .important,
85
+ pre .subst,
86
+ pre .cdata {
87
+ color: #cb4b16;
88
+ }
89
+
90
+ pre .deletion {
91
+ color: #dc322f;
92
+ }
93
+
94
+ pre .tex .formula {
95
+ background: #073642;
96
+ }
@@ -0,0 +1,96 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #fdf6e3; color: #657b83;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .diff .header,
15
+ pre .doctype,
16
+ pre .lisp .string,
17
+ pre .javadoc {
18
+ color: #93a1a1;
19
+ font-style: italic;
20
+ }
21
+
22
+ pre .keyword,
23
+ pre .css .rule .keyword,
24
+ pre .winutils,
25
+ pre .javascript .title,
26
+ pre .method,
27
+ pre .addition,
28
+ pre .css .tag,
29
+ pre .lisp .title {
30
+ color: #859900;
31
+ }
32
+
33
+ pre .number,
34
+ pre .command,
35
+ pre .string,
36
+ pre .tag .value,
37
+ pre .phpdoc,
38
+ pre .tex .formula,
39
+ pre .regexp,
40
+ pre .hexcolor {
41
+ color: #2aa198;
42
+ }
43
+
44
+ pre .title,
45
+ pre .localvars,
46
+ pre .function .title,
47
+ pre .chunk,
48
+ pre .decorator,
49
+ pre .builtin,
50
+ pre .built_in,
51
+ pre .lisp .title,
52
+ pre .identifier,
53
+ pre .title .keymethods,
54
+ pre .id {
55
+ color: #268bd2;
56
+ }
57
+
58
+ pre .tag .title,
59
+ pre .rules .property,
60
+ pre .django .tag .keyword {
61
+ font-weight: bold;
62
+ }
63
+
64
+ pre .attribute,
65
+ pre .variable,
66
+ pre .instancevar,
67
+ pre .lisp .body,
68
+ pre .smalltalk .number,
69
+ pre .constant,
70
+ pre .class .title,
71
+ pre .parent,
72
+ pre .haskell .label {
73
+ color: #b58900;
74
+ }
75
+
76
+ pre .preprocessor,
77
+ pre .pi,
78
+ pre .shebang,
79
+ pre .symbol,
80
+ pre .diff .change,
81
+ pre .special,
82
+ pre .keymethods,
83
+ pre .attr_selector,
84
+ pre .important,
85
+ pre .subst,
86
+ pre .cdata {
87
+ color: #cb4b16;
88
+ }
89
+
90
+ pre .deletion {
91
+ color: #dc322f;
92
+ }
93
+
94
+ pre .tex .formula {
95
+ background: #eee8d5;
96
+ }
@@ -0,0 +1,147 @@
1
+ /*
2
+
3
+ Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #000; color: #f8f8f8;
10
+ }
11
+
12
+ pre .comment,
13
+ pre .template_comment,
14
+ pre .javadoc {
15
+ color: #aeaeae;
16
+ font-style: italic;
17
+ }
18
+
19
+ pre .keyword,
20
+ pre .ruby .function .keyword {
21
+ color: #E28964;
22
+ }
23
+
24
+ pre .function .keyword,
25
+ pre .sub .keyword,
26
+ pre .method,
27
+ pre .list .title {
28
+ color: #99CF50;
29
+ }
30
+
31
+ pre .string,
32
+ pre .tag .value,
33
+ pre .cdata,
34
+ pre .filter .argument,
35
+ pre .attr_selector,
36
+ pre .apache .cbracket,
37
+ pre .date,
38
+ pre .tex .command {
39
+ color: #65B042;
40
+ }
41
+
42
+ pre .subst {
43
+ color: #DAEFA3;
44
+ }
45
+
46
+ pre .regexp {
47
+ color: #E9C062;
48
+ }
49
+
50
+ pre .function .title,
51
+ pre .sub .identifier,
52
+ pre .pi,
53
+ pre .tag,
54
+ pre .tag .keyword,
55
+ pre .decorator,
56
+ pre .ini .title,
57
+ pre .shebang,
58
+ pre .input_number {
59
+ color: #89BDFF;
60
+ }
61
+
62
+ pre .class .title,
63
+ pre .haskell .label,
64
+ pre .smalltalk .class,
65
+ pre .javadoctag,
66
+ pre .yardoctag,
67
+ pre .phpdoc {
68
+ text-decoration: underline;
69
+ }
70
+
71
+ pre .symbol,
72
+ pre .ruby .symbol .string,
73
+ pre .ruby .symbol .keyword,
74
+ pre .ruby .symbol .keymethods,
75
+ pre .number {
76
+ color: #3387CC;
77
+ }
78
+
79
+ pre .params,
80
+ pre .variable {
81
+ color: #3E87E3;
82
+ }
83
+
84
+ pre .css .tag,
85
+ pre .rules .property,
86
+ pre .pseudo,
87
+ pre .tex .special {
88
+ color: #CDA869;
89
+ }
90
+
91
+ pre .css .class {
92
+ color: #9B703F;
93
+ }
94
+
95
+ pre .rules .keyword {
96
+ color: #C5AF75;
97
+ }
98
+
99
+ pre .rules .value {
100
+ color: #CF6A4C;
101
+ }
102
+
103
+ pre .css .id {
104
+ color: #8B98AB;
105
+ }
106
+
107
+ pre .annotation,
108
+ pre .apache .sqbracket,
109
+ pre .nginx .built_in {
110
+ color: #9B859D;
111
+ }
112
+
113
+ pre .preprocessor {
114
+ color: #8996A8;
115
+ }
116
+
117
+ pre .hexcolor,
118
+ pre .css .value .number {
119
+ color: #DD7B3B;
120
+ }
121
+
122
+ pre .css .function {
123
+ color: #DAD085;
124
+ }
125
+
126
+ pre .diff .header,
127
+ pre .chunk,
128
+ pre .tex .formula {
129
+ background-color: #0E2231;
130
+ color: #F8F8F8;
131
+ font-style: italic;
132
+ }
133
+
134
+ pre .diff .change {
135
+ background-color: #4A410D;
136
+ color: #F8F8F8;
137
+ }
138
+
139
+ pre .addition {
140
+ background-color: #253B22;
141
+ color: #F8F8F8;
142
+ }
143
+
144
+ pre .deletion {
145
+ background-color: #420E09;
146
+ color: #F8F8F8;
147
+ }