volt-code_highlight 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +35 -0
- data/Rakefile +1 -0
- data/app/code_highlight/assets/css/agate.css +137 -0
- data/app/code_highlight/assets/css/androidstudio.css +53 -0
- data/app/code_highlight/assets/css/arta.css +138 -0
- data/app/code_highlight/assets/css/ascetic.css +52 -0
- data/app/code_highlight/assets/css/atelier-cave.dark.css +113 -0
- data/app/code_highlight/assets/css/atelier-cave.light.css +113 -0
- data/app/code_highlight/assets/css/atelier-dune.dark.css +94 -0
- data/app/code_highlight/assets/css/atelier-dune.light.css +94 -0
- data/app/code_highlight/assets/css/atelier-estuary.dark.css +113 -0
- data/app/code_highlight/assets/css/atelier-estuary.light.css +113 -0
- data/app/code_highlight/assets/css/atelier-forest.dark.css +94 -0
- data/app/code_highlight/assets/css/atelier-forest.light.css +94 -0
- data/app/code_highlight/assets/css/atelier-heath.dark.css +94 -0
- data/app/code_highlight/assets/css/atelier-heath.light.css +94 -0
- data/app/code_highlight/assets/css/atelier-lakeside.dark.css +94 -0
- data/app/code_highlight/assets/css/atelier-lakeside.light.css +94 -0
- data/app/code_highlight/assets/css/atelier-plateau.dark.css +113 -0
- data/app/code_highlight/assets/css/atelier-plateau.light.css +113 -0
- data/app/code_highlight/assets/css/atelier-savanna.dark.css +113 -0
- data/app/code_highlight/assets/css/atelier-savanna.light.css +113 -0
- data/app/code_highlight/assets/css/atelier-seaside.dark.css +94 -0
- data/app/code_highlight/assets/css/atelier-seaside.light.css +94 -0
- data/app/code_highlight/assets/css/atelier-sulphurpool.dark.css +94 -0
- data/app/code_highlight/assets/css/atelier-sulphurpool.light.css +94 -0
- data/app/code_highlight/assets/css/brown_paper.css +103 -0
- data/app/code_highlight/assets/css/brown_papersq.png +0 -0
- data/app/code_highlight/assets/css/codepen-embed.css +97 -0
- data/app/code_highlight/assets/css/color-brewer.css +165 -0
- data/app/code_highlight/assets/css/dark.css +103 -0
- data/app/code_highlight/assets/css/darkula.css +152 -0
- data/app/code_highlight/assets/css/default.css +155 -0
- data/app/code_highlight/assets/css/docco.css +134 -0
- data/app/code_highlight/assets/css/far.css +110 -0
- data/app/code_highlight/assets/css/foundation.css +135 -0
- data/app/code_highlight/assets/css/github-gist.css +218 -0
- data/app/code_highlight/assets/css/github.css +123 -0
- data/app/code_highlight/assets/css/googlecode.css +144 -0
- data/app/code_highlight/assets/css/grayscale.css +128 -0
- data/app/code_highlight/assets/css/hopscotch.css +95 -0
- data/app/code_highlight/assets/css/hybrid.css +164 -0
- data/app/code_highlight/assets/css/idea.css +122 -0
- data/app/code_highlight/assets/css/ir_black.css +106 -0
- data/app/code_highlight/assets/css/kimbie.dark.css +97 -0
- data/app/code_highlight/assets/css/kimbie.light.css +97 -0
- data/app/code_highlight/assets/css/magula.css +120 -0
- data/app/code_highlight/assets/css/mono-blue.css +68 -0
- data/app/code_highlight/assets/css/monokai.css +126 -0
- data/app/code_highlight/assets/css/monokai_sublime.css +154 -0
- data/app/code_highlight/assets/css/obsidian.css +152 -0
- data/app/code_highlight/assets/css/paraiso.dark.css +96 -0
- data/app/code_highlight/assets/css/paraiso.light.css +96 -0
- data/app/code_highlight/assets/css/pojoaque.css +106 -0
- data/app/code_highlight/assets/css/pojoaque.jpg +0 -0
- data/app/code_highlight/assets/css/railscasts.css +184 -0
- data/app/code_highlight/assets/css/rainbow.css +107 -0
- data/app/code_highlight/assets/css/school_book.css +111 -0
- data/app/code_highlight/assets/css/school_book.png +0 -0
- data/app/code_highlight/assets/css/solarized_dark.css +107 -0
- data/app/code_highlight/assets/css/solarized_light.css +107 -0
- data/app/code_highlight/assets/css/sunburst.css +161 -0
- data/app/code_highlight/assets/css/tomorrow-night-blue.css +96 -0
- data/app/code_highlight/assets/css/tomorrow-night-bright.css +95 -0
- data/app/code_highlight/assets/css/tomorrow-night-eighties.css +95 -0
- data/app/code_highlight/assets/css/tomorrow-night.css +96 -0
- data/app/code_highlight/assets/css/tomorrow.css +93 -0
- data/app/code_highlight/assets/css/vs.css +92 -0
- data/app/code_highlight/assets/css/xcode.css +154 -0
- data/app/code_highlight/assets/css/zenburn.css +118 -0
- data/app/code_highlight/assets/js/highlight.pack.js +1 -0
- data/app/code_highlight/config/dependencies.rb +5 -0
- data/app/code_highlight/config/initializers/boot.rb +10 -0
- data/app/code_highlight/config/routes.rb +1 -0
- data/app/code_highlight/controllers/main_controller.rb +32 -0
- data/app/code_highlight/views/main/index.html +1 -0
- data/lib/volt/code_highlight.rb +18 -0
- data/lib/volt/code_highlight/version.rb +5 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/volt/code_highlight_spec.rb +11 -0
- data/volt-code_highlight.gemspec +23 -0
- metadata +174 -0
@@ -0,0 +1,107 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
|
4
|
+
|
5
|
+
*/
|
6
|
+
|
7
|
+
.hljs {
|
8
|
+
display: block;
|
9
|
+
overflow-x: auto;
|
10
|
+
padding: 0.5em;
|
11
|
+
background: #fdf6e3;
|
12
|
+
color: #657b83;
|
13
|
+
-webkit-text-size-adjust: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
.hljs-comment,
|
17
|
+
.diff .hljs-header,
|
18
|
+
.hljs-doctype,
|
19
|
+
.hljs-pi,
|
20
|
+
.lisp .hljs-string {
|
21
|
+
color: #93a1a1;
|
22
|
+
}
|
23
|
+
|
24
|
+
/* Solarized Green */
|
25
|
+
.hljs-keyword,
|
26
|
+
.hljs-winutils,
|
27
|
+
.method,
|
28
|
+
.hljs-addition,
|
29
|
+
.css .hljs-tag,
|
30
|
+
.hljs-request,
|
31
|
+
.hljs-status,
|
32
|
+
.nginx .hljs-title {
|
33
|
+
color: #859900;
|
34
|
+
}
|
35
|
+
|
36
|
+
/* Solarized Cyan */
|
37
|
+
.hljs-number,
|
38
|
+
.hljs-command,
|
39
|
+
.hljs-string,
|
40
|
+
.hljs-tag .hljs-value,
|
41
|
+
.hljs-rule .hljs-value,
|
42
|
+
.hljs-doctag,
|
43
|
+
.tex .hljs-formula,
|
44
|
+
.hljs-regexp,
|
45
|
+
.hljs-hexcolor,
|
46
|
+
.hljs-link_url {
|
47
|
+
color: #2aa198;
|
48
|
+
}
|
49
|
+
|
50
|
+
/* Solarized Blue */
|
51
|
+
.hljs-title,
|
52
|
+
.hljs-localvars,
|
53
|
+
.hljs-chunk,
|
54
|
+
.hljs-decorator,
|
55
|
+
.hljs-built_in,
|
56
|
+
.hljs-identifier,
|
57
|
+
.vhdl .hljs-literal,
|
58
|
+
.hljs-id,
|
59
|
+
.css .hljs-function,
|
60
|
+
.hljs-name {
|
61
|
+
color: #268bd2;
|
62
|
+
}
|
63
|
+
|
64
|
+
/* Solarized Yellow */
|
65
|
+
.hljs-attribute,
|
66
|
+
.hljs-variable,
|
67
|
+
.lisp .hljs-body,
|
68
|
+
.smalltalk .hljs-number,
|
69
|
+
.hljs-constant,
|
70
|
+
.hljs-class .hljs-title,
|
71
|
+
.hljs-parent,
|
72
|
+
.hljs-type,
|
73
|
+
.hljs-link_reference {
|
74
|
+
color: #b58900;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* Solarized Orange */
|
78
|
+
.hljs-preprocessor,
|
79
|
+
.hljs-preprocessor .hljs-keyword,
|
80
|
+
.hljs-pragma,
|
81
|
+
.hljs-shebang,
|
82
|
+
.hljs-symbol,
|
83
|
+
.hljs-symbol .hljs-string,
|
84
|
+
.diff .hljs-change,
|
85
|
+
.hljs-special,
|
86
|
+
.hljs-attr_selector,
|
87
|
+
.hljs-subst,
|
88
|
+
.hljs-cdata,
|
89
|
+
.css .hljs-pseudo,
|
90
|
+
.hljs-header {
|
91
|
+
color: #cb4b16;
|
92
|
+
}
|
93
|
+
|
94
|
+
/* Solarized Red */
|
95
|
+
.hljs-deletion,
|
96
|
+
.hljs-important {
|
97
|
+
color: #dc322f;
|
98
|
+
}
|
99
|
+
|
100
|
+
/* Solarized Violet */
|
101
|
+
.hljs-link_label {
|
102
|
+
color: #6c71c4;
|
103
|
+
}
|
104
|
+
|
105
|
+
.tex .hljs-formula {
|
106
|
+
background: #eee8d5;
|
107
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net>
|
4
|
+
|
5
|
+
*/
|
6
|
+
|
7
|
+
.hljs {
|
8
|
+
display: block;
|
9
|
+
overflow-x: auto;
|
10
|
+
padding: 0.5em;
|
11
|
+
background: #000;
|
12
|
+
color: #f8f8f8;
|
13
|
+
-webkit-text-size-adjust: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
.hljs-comment {
|
17
|
+
color: #aeaeae;
|
18
|
+
font-style: italic;
|
19
|
+
}
|
20
|
+
|
21
|
+
.hljs-keyword,
|
22
|
+
.ruby .hljs-function .hljs-keyword,
|
23
|
+
.hljs-request,
|
24
|
+
.hljs-status,
|
25
|
+
.nginx .hljs-title {
|
26
|
+
color: #e28964;
|
27
|
+
}
|
28
|
+
|
29
|
+
.hljs-function .hljs-keyword,
|
30
|
+
.hljs-sub .hljs-keyword,
|
31
|
+
.method,
|
32
|
+
.hljs-list .hljs-title {
|
33
|
+
color: #99cf50;
|
34
|
+
}
|
35
|
+
|
36
|
+
.hljs-string,
|
37
|
+
.hljs-tag .hljs-value,
|
38
|
+
.hljs-cdata,
|
39
|
+
.hljs-filter .hljs-argument,
|
40
|
+
.hljs-attr_selector,
|
41
|
+
.apache .hljs-cbracket,
|
42
|
+
.hljs-date,
|
43
|
+
.tex .hljs-command,
|
44
|
+
.coffeescript .hljs-attribute,
|
45
|
+
.hljs-name {
|
46
|
+
color: #65b042;
|
47
|
+
}
|
48
|
+
|
49
|
+
.hljs-subst {
|
50
|
+
color: #daefa3;
|
51
|
+
}
|
52
|
+
|
53
|
+
.hljs-regexp {
|
54
|
+
color: #e9c062;
|
55
|
+
}
|
56
|
+
|
57
|
+
.hljs-title,
|
58
|
+
.hljs-sub .hljs-identifier,
|
59
|
+
.hljs-pi,
|
60
|
+
.hljs-tag,
|
61
|
+
.hljs-tag .hljs-keyword,
|
62
|
+
.hljs-decorator,
|
63
|
+
.hljs-shebang,
|
64
|
+
.hljs-prompt {
|
65
|
+
color: #89bdff;
|
66
|
+
}
|
67
|
+
|
68
|
+
.hljs-class .hljs-title,
|
69
|
+
.hljs-type,
|
70
|
+
.smalltalk .hljs-class,
|
71
|
+
.hljs-doctag {
|
72
|
+
text-decoration: underline;
|
73
|
+
}
|
74
|
+
|
75
|
+
.hljs-symbol,
|
76
|
+
.ruby .hljs-symbol .hljs-string,
|
77
|
+
.hljs-number {
|
78
|
+
color: #3387cc;
|
79
|
+
}
|
80
|
+
|
81
|
+
.hljs-params,
|
82
|
+
.hljs-variable,
|
83
|
+
.clojure .hljs-attribute {
|
84
|
+
color: #3e87e3;
|
85
|
+
}
|
86
|
+
|
87
|
+
.css .hljs-tag,
|
88
|
+
.hljs-rule .hljs-property,
|
89
|
+
.hljs-pseudo,
|
90
|
+
.tex .hljs-special {
|
91
|
+
color: #cda869;
|
92
|
+
}
|
93
|
+
|
94
|
+
.css .hljs-class {
|
95
|
+
color: #9b703f;
|
96
|
+
}
|
97
|
+
|
98
|
+
.hljs-rule .hljs-keyword {
|
99
|
+
color: #c5af75;
|
100
|
+
}
|
101
|
+
|
102
|
+
.hljs-rule .hljs-value {
|
103
|
+
color: #cf6a4c;
|
104
|
+
}
|
105
|
+
|
106
|
+
.css .hljs-id {
|
107
|
+
color: #8b98ab;
|
108
|
+
}
|
109
|
+
|
110
|
+
.hljs-annotation,
|
111
|
+
.apache .hljs-sqbracket,
|
112
|
+
.nginx .hljs-built_in {
|
113
|
+
color: #9b859d;
|
114
|
+
}
|
115
|
+
|
116
|
+
.hljs-preprocessor,
|
117
|
+
.hljs-pragma {
|
118
|
+
color: #8996a8;
|
119
|
+
}
|
120
|
+
|
121
|
+
.hljs-hexcolor,
|
122
|
+
.css .hljs-value .hljs-number {
|
123
|
+
color: #dd7b3b;
|
124
|
+
}
|
125
|
+
|
126
|
+
.css .hljs-function {
|
127
|
+
color: #dad085;
|
128
|
+
}
|
129
|
+
|
130
|
+
.diff .hljs-header,
|
131
|
+
.hljs-chunk,
|
132
|
+
.tex .hljs-formula {
|
133
|
+
background-color: #0e2231;
|
134
|
+
color: #f8f8f8;
|
135
|
+
font-style: italic;
|
136
|
+
}
|
137
|
+
|
138
|
+
.diff .hljs-change {
|
139
|
+
background-color: #4a410d;
|
140
|
+
color: #f8f8f8;
|
141
|
+
}
|
142
|
+
|
143
|
+
.hljs-addition {
|
144
|
+
background-color: #253b22;
|
145
|
+
color: #f8f8f8;
|
146
|
+
}
|
147
|
+
|
148
|
+
.hljs-deletion {
|
149
|
+
background-color: #420e09;
|
150
|
+
color: #f8f8f8;
|
151
|
+
}
|
152
|
+
|
153
|
+
.coffeescript .javascript,
|
154
|
+
.javascript .xml,
|
155
|
+
.tex .hljs-formula,
|
156
|
+
.xml .javascript,
|
157
|
+
.xml .vbscript,
|
158
|
+
.xml .css,
|
159
|
+
.xml .hljs-cdata {
|
160
|
+
opacity: 0.5;
|
161
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
/* Tomorrow Night Blue Theme */
|
2
|
+
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
3
|
+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
4
|
+
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
5
|
+
|
6
|
+
/* Tomorrow Comment */
|
7
|
+
.hljs-comment {
|
8
|
+
color: #7285b7;
|
9
|
+
}
|
10
|
+
|
11
|
+
/* Tomorrow Red */
|
12
|
+
.hljs-variable,
|
13
|
+
.hljs-attribute,
|
14
|
+
.hljs-tag,
|
15
|
+
.hljs-regexp,
|
16
|
+
.ruby .hljs-constant,
|
17
|
+
.xml .hljs-tag .hljs-title,
|
18
|
+
.xml .hljs-pi,
|
19
|
+
.xml .hljs-doctype,
|
20
|
+
.html .hljs-doctype,
|
21
|
+
.css .hljs-id,
|
22
|
+
.css .hljs-class,
|
23
|
+
.css .hljs-pseudo {
|
24
|
+
color: #ff9da4;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Tomorrow Orange */
|
28
|
+
.hljs-number,
|
29
|
+
.hljs-preprocessor,
|
30
|
+
.hljs-pragma,
|
31
|
+
.hljs-built_in,
|
32
|
+
.hljs-literal,
|
33
|
+
.hljs-params,
|
34
|
+
.hljs-constant {
|
35
|
+
color: #ffc58f;
|
36
|
+
}
|
37
|
+
|
38
|
+
/* Tomorrow Yellow */
|
39
|
+
.ruby .hljs-class .hljs-title,
|
40
|
+
.css .hljs-rule .hljs-attribute {
|
41
|
+
color: #ffeead;
|
42
|
+
}
|
43
|
+
|
44
|
+
/* Tomorrow Green */
|
45
|
+
.hljs-string,
|
46
|
+
.hljs-value,
|
47
|
+
.hljs-inheritance,
|
48
|
+
.hljs-header,
|
49
|
+
.hljs-name,
|
50
|
+
.ruby .hljs-symbol,
|
51
|
+
.xml .hljs-cdata {
|
52
|
+
color: #d1f1a9;
|
53
|
+
}
|
54
|
+
|
55
|
+
/* Tomorrow Aqua */
|
56
|
+
.hljs-title,
|
57
|
+
.css .hljs-hexcolor {
|
58
|
+
color: #99ffff;
|
59
|
+
}
|
60
|
+
|
61
|
+
/* Tomorrow Blue */
|
62
|
+
.hljs-function,
|
63
|
+
.python .hljs-decorator,
|
64
|
+
.python .hljs-title,
|
65
|
+
.ruby .hljs-function .hljs-title,
|
66
|
+
.ruby .hljs-title .hljs-keyword,
|
67
|
+
.perl .hljs-sub,
|
68
|
+
.javascript .hljs-title,
|
69
|
+
.coffeescript .hljs-title {
|
70
|
+
color: #bbdaff;
|
71
|
+
}
|
72
|
+
|
73
|
+
/* Tomorrow Purple */
|
74
|
+
.hljs-keyword,
|
75
|
+
.javascript .hljs-function {
|
76
|
+
color: #ebbbff;
|
77
|
+
}
|
78
|
+
|
79
|
+
.hljs {
|
80
|
+
display: block;
|
81
|
+
overflow-x: auto;
|
82
|
+
background: #002451;
|
83
|
+
color: white;
|
84
|
+
padding: 0.5em;
|
85
|
+
-webkit-text-size-adjust: none;
|
86
|
+
}
|
87
|
+
|
88
|
+
.coffeescript .javascript,
|
89
|
+
.javascript .xml,
|
90
|
+
.tex .hljs-formula,
|
91
|
+
.xml .javascript,
|
92
|
+
.xml .vbscript,
|
93
|
+
.xml .css,
|
94
|
+
.xml .hljs-cdata {
|
95
|
+
opacity: 0.5;
|
96
|
+
}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
/* Tomorrow Night Bright Theme */
|
2
|
+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
3
|
+
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
4
|
+
|
5
|
+
/* Tomorrow Comment */
|
6
|
+
.hljs-comment {
|
7
|
+
color: #969896;
|
8
|
+
}
|
9
|
+
|
10
|
+
/* Tomorrow Red */
|
11
|
+
.hljs-variable,
|
12
|
+
.hljs-attribute,
|
13
|
+
.hljs-tag,
|
14
|
+
.hljs-regexp,
|
15
|
+
.ruby .hljs-constant,
|
16
|
+
.xml .hljs-tag .hljs-title,
|
17
|
+
.xml .hljs-pi,
|
18
|
+
.xml .hljs-doctype,
|
19
|
+
.html .hljs-doctype,
|
20
|
+
.css .hljs-id,
|
21
|
+
.css .hljs-class,
|
22
|
+
.css .hljs-pseudo {
|
23
|
+
color: #d54e53;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Tomorrow Orange */
|
27
|
+
.hljs-number,
|
28
|
+
.hljs-preprocessor,
|
29
|
+
.hljs-pragma,
|
30
|
+
.hljs-built_in,
|
31
|
+
.hljs-literal,
|
32
|
+
.hljs-params,
|
33
|
+
.hljs-constant {
|
34
|
+
color: #e78c45;
|
35
|
+
}
|
36
|
+
|
37
|
+
/* Tomorrow Yellow */
|
38
|
+
.ruby .hljs-class .hljs-title,
|
39
|
+
.css .hljs-rule .hljs-attribute {
|
40
|
+
color: #e7c547;
|
41
|
+
}
|
42
|
+
|
43
|
+
/* Tomorrow Green */
|
44
|
+
.hljs-string,
|
45
|
+
.hljs-value,
|
46
|
+
.hljs-inheritance,
|
47
|
+
.hljs-header,
|
48
|
+
.hljs-name,
|
49
|
+
.ruby .hljs-symbol,
|
50
|
+
.xml .hljs-cdata {
|
51
|
+
color: #b9ca4a;
|
52
|
+
}
|
53
|
+
|
54
|
+
/* Tomorrow Aqua */
|
55
|
+
.hljs-title,
|
56
|
+
.css .hljs-hexcolor {
|
57
|
+
color: #70c0b1;
|
58
|
+
}
|
59
|
+
|
60
|
+
/* Tomorrow Blue */
|
61
|
+
.hljs-function,
|
62
|
+
.python .hljs-decorator,
|
63
|
+
.python .hljs-title,
|
64
|
+
.ruby .hljs-function .hljs-title,
|
65
|
+
.ruby .hljs-title .hljs-keyword,
|
66
|
+
.perl .hljs-sub,
|
67
|
+
.javascript .hljs-title,
|
68
|
+
.coffeescript .hljs-title {
|
69
|
+
color: #7aa6da;
|
70
|
+
}
|
71
|
+
|
72
|
+
/* Tomorrow Purple */
|
73
|
+
.hljs-keyword,
|
74
|
+
.javascript .hljs-function {
|
75
|
+
color: #c397d8;
|
76
|
+
}
|
77
|
+
|
78
|
+
.hljs {
|
79
|
+
display: block;
|
80
|
+
overflow-x: auto;
|
81
|
+
background: black;
|
82
|
+
color: #eaeaea;
|
83
|
+
padding: 0.5em;
|
84
|
+
-webkit-text-size-adjust: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
.coffeescript .javascript,
|
88
|
+
.javascript .xml,
|
89
|
+
.tex .hljs-formula,
|
90
|
+
.xml .javascript,
|
91
|
+
.xml .vbscript,
|
92
|
+
.xml .css,
|
93
|
+
.xml .hljs-cdata {
|
94
|
+
opacity: 0.5;
|
95
|
+
}
|