volt-code_highlight 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +2 -0
  4. data/CODE_OF_CONDUCT.md +13 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +35 -0
  8. data/Rakefile +1 -0
  9. data/app/code_highlight/assets/css/agate.css +137 -0
  10. data/app/code_highlight/assets/css/androidstudio.css +53 -0
  11. data/app/code_highlight/assets/css/arta.css +138 -0
  12. data/app/code_highlight/assets/css/ascetic.css +52 -0
  13. data/app/code_highlight/assets/css/atelier-cave.dark.css +113 -0
  14. data/app/code_highlight/assets/css/atelier-cave.light.css +113 -0
  15. data/app/code_highlight/assets/css/atelier-dune.dark.css +94 -0
  16. data/app/code_highlight/assets/css/atelier-dune.light.css +94 -0
  17. data/app/code_highlight/assets/css/atelier-estuary.dark.css +113 -0
  18. data/app/code_highlight/assets/css/atelier-estuary.light.css +113 -0
  19. data/app/code_highlight/assets/css/atelier-forest.dark.css +94 -0
  20. data/app/code_highlight/assets/css/atelier-forest.light.css +94 -0
  21. data/app/code_highlight/assets/css/atelier-heath.dark.css +94 -0
  22. data/app/code_highlight/assets/css/atelier-heath.light.css +94 -0
  23. data/app/code_highlight/assets/css/atelier-lakeside.dark.css +94 -0
  24. data/app/code_highlight/assets/css/atelier-lakeside.light.css +94 -0
  25. data/app/code_highlight/assets/css/atelier-plateau.dark.css +113 -0
  26. data/app/code_highlight/assets/css/atelier-plateau.light.css +113 -0
  27. data/app/code_highlight/assets/css/atelier-savanna.dark.css +113 -0
  28. data/app/code_highlight/assets/css/atelier-savanna.light.css +113 -0
  29. data/app/code_highlight/assets/css/atelier-seaside.dark.css +94 -0
  30. data/app/code_highlight/assets/css/atelier-seaside.light.css +94 -0
  31. data/app/code_highlight/assets/css/atelier-sulphurpool.dark.css +94 -0
  32. data/app/code_highlight/assets/css/atelier-sulphurpool.light.css +94 -0
  33. data/app/code_highlight/assets/css/brown_paper.css +103 -0
  34. data/app/code_highlight/assets/css/brown_papersq.png +0 -0
  35. data/app/code_highlight/assets/css/codepen-embed.css +97 -0
  36. data/app/code_highlight/assets/css/color-brewer.css +165 -0
  37. data/app/code_highlight/assets/css/dark.css +103 -0
  38. data/app/code_highlight/assets/css/darkula.css +152 -0
  39. data/app/code_highlight/assets/css/default.css +155 -0
  40. data/app/code_highlight/assets/css/docco.css +134 -0
  41. data/app/code_highlight/assets/css/far.css +110 -0
  42. data/app/code_highlight/assets/css/foundation.css +135 -0
  43. data/app/code_highlight/assets/css/github-gist.css +218 -0
  44. data/app/code_highlight/assets/css/github.css +123 -0
  45. data/app/code_highlight/assets/css/googlecode.css +144 -0
  46. data/app/code_highlight/assets/css/grayscale.css +128 -0
  47. data/app/code_highlight/assets/css/hopscotch.css +95 -0
  48. data/app/code_highlight/assets/css/hybrid.css +164 -0
  49. data/app/code_highlight/assets/css/idea.css +122 -0
  50. data/app/code_highlight/assets/css/ir_black.css +106 -0
  51. data/app/code_highlight/assets/css/kimbie.dark.css +97 -0
  52. data/app/code_highlight/assets/css/kimbie.light.css +97 -0
  53. data/app/code_highlight/assets/css/magula.css +120 -0
  54. data/app/code_highlight/assets/css/mono-blue.css +68 -0
  55. data/app/code_highlight/assets/css/monokai.css +126 -0
  56. data/app/code_highlight/assets/css/monokai_sublime.css +154 -0
  57. data/app/code_highlight/assets/css/obsidian.css +152 -0
  58. data/app/code_highlight/assets/css/paraiso.dark.css +96 -0
  59. data/app/code_highlight/assets/css/paraiso.light.css +96 -0
  60. data/app/code_highlight/assets/css/pojoaque.css +106 -0
  61. data/app/code_highlight/assets/css/pojoaque.jpg +0 -0
  62. data/app/code_highlight/assets/css/railscasts.css +184 -0
  63. data/app/code_highlight/assets/css/rainbow.css +107 -0
  64. data/app/code_highlight/assets/css/school_book.css +111 -0
  65. data/app/code_highlight/assets/css/school_book.png +0 -0
  66. data/app/code_highlight/assets/css/solarized_dark.css +107 -0
  67. data/app/code_highlight/assets/css/solarized_light.css +107 -0
  68. data/app/code_highlight/assets/css/sunburst.css +161 -0
  69. data/app/code_highlight/assets/css/tomorrow-night-blue.css +96 -0
  70. data/app/code_highlight/assets/css/tomorrow-night-bright.css +95 -0
  71. data/app/code_highlight/assets/css/tomorrow-night-eighties.css +95 -0
  72. data/app/code_highlight/assets/css/tomorrow-night.css +96 -0
  73. data/app/code_highlight/assets/css/tomorrow.css +93 -0
  74. data/app/code_highlight/assets/css/vs.css +92 -0
  75. data/app/code_highlight/assets/css/xcode.css +154 -0
  76. data/app/code_highlight/assets/css/zenburn.css +118 -0
  77. data/app/code_highlight/assets/js/highlight.pack.js +1 -0
  78. data/app/code_highlight/config/dependencies.rb +5 -0
  79. data/app/code_highlight/config/initializers/boot.rb +10 -0
  80. data/app/code_highlight/config/routes.rb +1 -0
  81. data/app/code_highlight/controllers/main_controller.rb +32 -0
  82. data/app/code_highlight/views/main/index.html +1 -0
  83. data/lib/volt/code_highlight.rb +18 -0
  84. data/lib/volt/code_highlight/version.rb +5 -0
  85. data/spec/spec_helper.rb +14 -0
  86. data/spec/volt/code_highlight_spec.rb +11 -0
  87. data/volt-code_highlight.gemspec +23 -0
  88. metadata +174 -0
@@ -0,0 +1,95 @@
1
+ /* Tomorrow Night Eighties 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: #999999;
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: #f2777a;
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: #f99157;
35
+ }
36
+
37
+ /* Tomorrow Yellow */
38
+ .ruby .hljs-class .hljs-title,
39
+ .css .hljs-rule .hljs-attribute {
40
+ color: #ffcc66;
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: #99cc99;
52
+ }
53
+
54
+ /* Tomorrow Aqua */
55
+ .hljs-title,
56
+ .css .hljs-hexcolor {
57
+ color: #66cccc;
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: #6699cc;
70
+ }
71
+
72
+ /* Tomorrow Purple */
73
+ .hljs-keyword,
74
+ .javascript .hljs-function {
75
+ color: #cc99cc;
76
+ }
77
+
78
+ .hljs {
79
+ display: block;
80
+ overflow-x: auto;
81
+ background: #2d2d2d;
82
+ color: #cccccc;
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
+ }
@@ -0,0 +1,96 @@
1
+ /* Tomorrow Night 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: #969896;
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: #cc6666;
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: #de935f;
36
+ }
37
+
38
+ /* Tomorrow Yellow */
39
+ .ruby .hljs-class .hljs-title,
40
+ .css .hljs-rule .hljs-attribute {
41
+ color: #f0c674;
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: #b5bd68;
53
+ }
54
+
55
+ /* Tomorrow Aqua */
56
+ .hljs-title,
57
+ .css .hljs-hexcolor {
58
+ color: #8abeb7;
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: #81a2be;
71
+ }
72
+
73
+ /* Tomorrow Purple */
74
+ .hljs-keyword,
75
+ .javascript .hljs-function {
76
+ color: #b294bb;
77
+ }
78
+
79
+ .hljs {
80
+ display: block;
81
+ overflow-x: auto;
82
+ background: #1d1f21;
83
+ color: #c5c8c6;
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,93 @@
1
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
2
+
3
+ /* Tomorrow Comment */
4
+ .hljs-comment {
5
+ color: #8e908c;
6
+ }
7
+
8
+ /* Tomorrow Red */
9
+ .hljs-variable,
10
+ .hljs-attribute,
11
+ .hljs-tag,
12
+ .hljs-regexp,
13
+ .ruby .hljs-constant,
14
+ .xml .hljs-tag .hljs-title,
15
+ .xml .hljs-pi,
16
+ .xml .hljs-doctype,
17
+ .html .hljs-doctype,
18
+ .css .hljs-id,
19
+ .css .hljs-class,
20
+ .css .hljs-pseudo {
21
+ color: #c82829;
22
+ }
23
+
24
+ /* Tomorrow Orange */
25
+ .hljs-number,
26
+ .hljs-preprocessor,
27
+ .hljs-pragma,
28
+ .hljs-built_in,
29
+ .hljs-literal,
30
+ .hljs-params,
31
+ .hljs-constant {
32
+ color: #f5871f;
33
+ }
34
+
35
+ /* Tomorrow Yellow */
36
+ .ruby .hljs-class .hljs-title,
37
+ .css .hljs-rule .hljs-attribute {
38
+ color: #eab700;
39
+ }
40
+
41
+ /* Tomorrow Green */
42
+ .hljs-string,
43
+ .hljs-value,
44
+ .hljs-inheritance,
45
+ .hljs-header,
46
+ .hljs-name,
47
+ .ruby .hljs-symbol,
48
+ .xml .hljs-cdata {
49
+ color: #718c00;
50
+ }
51
+
52
+ /* Tomorrow Aqua */
53
+ .hljs-title,
54
+ .css .hljs-hexcolor {
55
+ color: #3e999f;
56
+ }
57
+
58
+ /* Tomorrow Blue */
59
+ .hljs-function,
60
+ .python .hljs-decorator,
61
+ .python .hljs-title,
62
+ .ruby .hljs-function .hljs-title,
63
+ .ruby .hljs-title .hljs-keyword,
64
+ .perl .hljs-sub,
65
+ .javascript .hljs-title,
66
+ .coffeescript .hljs-title {
67
+ color: #4271ae;
68
+ }
69
+
70
+ /* Tomorrow Purple */
71
+ .hljs-keyword,
72
+ .javascript .hljs-function {
73
+ color: #8959a8;
74
+ }
75
+
76
+ .hljs {
77
+ display: block;
78
+ overflow-x: auto;
79
+ background: white;
80
+ color: #4d4d4c;
81
+ padding: 0.5em;
82
+ -webkit-text-size-adjust: none;
83
+ }
84
+
85
+ .coffeescript .javascript,
86
+ .javascript .xml,
87
+ .tex .hljs-formula,
88
+ .xml .javascript,
89
+ .xml .vbscript,
90
+ .xml .css,
91
+ .xml .hljs-cdata {
92
+ opacity: 0.5;
93
+ }
@@ -0,0 +1,92 @@
1
+ /*
2
+
3
+ Visual Studio-like style based on original C# coloring by Jason Diamond <jason@diamond.name>
4
+
5
+ */
6
+ .hljs {
7
+ display: block;
8
+ overflow-x: auto;
9
+ padding: 0.5em;
10
+ background: white;
11
+ color: black;
12
+ -webkit-text-size-adjust: none;
13
+ }
14
+
15
+ .hljs-comment,
16
+ .hljs-annotation,
17
+ .diff .hljs-header,
18
+ .hljs-chunk,
19
+ .apache .hljs-cbracket {
20
+ color: #008000;
21
+ }
22
+
23
+ .hljs-keyword,
24
+ .hljs-id,
25
+ .hljs-built_in,
26
+ .smalltalk .hljs-class,
27
+ .hljs-winutils,
28
+ .bash .hljs-variable,
29
+ .tex .hljs-command,
30
+ .hljs-request,
31
+ .hljs-status,
32
+ .nginx .hljs-title,
33
+ .xml .hljs-tag,
34
+ .xml .hljs-tag .hljs-value {
35
+ color: #00f;
36
+ }
37
+
38
+ .hljs-string,
39
+ .hljs-title,
40
+ .hljs-parent,
41
+ .hljs-tag .hljs-value,
42
+ .hljs-rule .hljs-value,
43
+ .ruby .hljs-symbol,
44
+ .ruby .hljs-symbol .hljs-string,
45
+ .hljs-template_tag,
46
+ .django .hljs-variable,
47
+ .hljs-addition,
48
+ .hljs-flow,
49
+ .hljs-stream,
50
+ .apache .hljs-tag,
51
+ .hljs-date,
52
+ .tex .hljs-formula,
53
+ .coffeescript .hljs-attribute,
54
+ .hljs-name {
55
+ color: #a31515;
56
+ }
57
+
58
+ .ruby .hljs-string,
59
+ .hljs-decorator,
60
+ .hljs-filter .hljs-argument,
61
+ .hljs-localvars,
62
+ .hljs-array,
63
+ .hljs-attr_selector,
64
+ .hljs-pseudo,
65
+ .hljs-pi,
66
+ .hljs-doctype,
67
+ .hljs-deletion,
68
+ .hljs-envvar,
69
+ .hljs-shebang,
70
+ .hljs-preprocessor,
71
+ .hljs-pragma,
72
+ .userType,
73
+ .apache .hljs-sqbracket,
74
+ .nginx .hljs-built_in,
75
+ .tex .hljs-special,
76
+ .hljs-prompt {
77
+ color: #2b91af;
78
+ }
79
+
80
+ .hljs-doctag,
81
+ .hljs-xmlDocTag {
82
+ color: #808080;
83
+ }
84
+
85
+ .hljs-type,
86
+ .hljs-typename { font-weight: bold; }
87
+
88
+ .vhdl .hljs-string { color: #666666; }
89
+ .vhdl .hljs-literal { color: #a31515; }
90
+ .vhdl .hljs-attribute { color: #00b0e8; }
91
+
92
+ .xml .hljs-attribute { color: #f00; }
@@ -0,0 +1,154 @@
1
+ /*
2
+
3
+ XCode style (c) Angel Garcia <angelgarcia.mail@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #fff;
12
+ color: black;
13
+ -webkit-text-size-adjust: none;
14
+ }
15
+
16
+ .hljs-comment {
17
+ color: #006a00;
18
+ }
19
+
20
+ .hljs-keyword,
21
+ .hljs-literal,
22
+ .nginx .hljs-title {
23
+ color: #aa0d91;
24
+ }
25
+ .method,
26
+ .hljs-list .hljs-title,
27
+ .hljs-tag .hljs-title,
28
+ .setting .hljs-value,
29
+ .hljs-winutils,
30
+ .tex .hljs-command,
31
+ .http .hljs-title,
32
+ .hljs-request,
33
+ .hljs-status,
34
+ .hljs-name {
35
+ color: #008;
36
+ }
37
+
38
+ .hljs-envvar,
39
+ .tex .hljs-special {
40
+ color: #660;
41
+ }
42
+
43
+ .hljs-string {
44
+ color: #c41a16;
45
+ }
46
+ .hljs-tag .hljs-value,
47
+ .hljs-cdata,
48
+ .hljs-filter .hljs-argument,
49
+ .hljs-attr_selector,
50
+ .apache .hljs-cbracket,
51
+ .hljs-date,
52
+ .hljs-regexp {
53
+ color: #080;
54
+ }
55
+
56
+ .hljs-sub .hljs-identifier,
57
+ .hljs-pi,
58
+ .hljs-tag,
59
+ .hljs-tag .hljs-keyword,
60
+ .hljs-decorator,
61
+ .ini .hljs-title,
62
+ .hljs-shebang,
63
+ .hljs-prompt,
64
+ .hljs-hexcolor,
65
+ .hljs-rule .hljs-value,
66
+ .hljs-symbol,
67
+ .hljs-symbol .hljs-string,
68
+ .hljs-number,
69
+ .css .hljs-function,
70
+ .hljs-function .hljs-title,
71
+ .coffeescript .hljs-attribute {
72
+ color: #1c00cf;
73
+ }
74
+
75
+ .hljs-class .hljs-title,
76
+ .smalltalk .hljs-class,
77
+ .hljs-type,
78
+ .hljs-typename,
79
+ .hljs-tag .hljs-attribute,
80
+ .hljs-doctype,
81
+ .hljs-class .hljs-id,
82
+ .hljs-built_in,
83
+ .setting,
84
+ .hljs-params,
85
+ .clojure .hljs-attribute {
86
+ color: #5c2699;
87
+ }
88
+
89
+ .hljs-variable {
90
+ color: #3f6e74;
91
+ }
92
+ .css .hljs-tag,
93
+ .hljs-rule .hljs-property,
94
+ .hljs-pseudo,
95
+ .hljs-subst {
96
+ color: #000;
97
+ }
98
+
99
+ .css .hljs-class,
100
+ .css .hljs-id {
101
+ color: #9b703f;
102
+ }
103
+
104
+ .hljs-value .hljs-important {
105
+ color: #ff7700;
106
+ font-weight: bold;
107
+ }
108
+
109
+ .hljs-rule .hljs-keyword {
110
+ color: #c5af75;
111
+ }
112
+
113
+ .hljs-annotation,
114
+ .apache .hljs-sqbracket,
115
+ .nginx .hljs-built_in {
116
+ color: #9b859d;
117
+ }
118
+
119
+ .hljs-preprocessor,
120
+ .hljs-preprocessor *,
121
+ .hljs-pragma {
122
+ color: #643820;
123
+ }
124
+
125
+ .tex .hljs-formula {
126
+ background-color: #eee;
127
+ font-style: italic;
128
+ }
129
+
130
+ .diff .hljs-header,
131
+ .hljs-chunk {
132
+ color: #808080;
133
+ font-weight: bold;
134
+ }
135
+
136
+ .diff .hljs-change {
137
+ background-color: #bccff9;
138
+ }
139
+
140
+ .hljs-addition {
141
+ background-color: #baeeba;
142
+ }
143
+
144
+ .hljs-deletion {
145
+ background-color: #ffc8bd;
146
+ }
147
+
148
+ .hljs-comment .hljs-doctag {
149
+ font-weight: bold;
150
+ }
151
+
152
+ .method .hljs-id {
153
+ color: #000;
154
+ }