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,94 @@
1
+ /* Base16 Atelier Sulphurpool Light - Theme */
2
+ /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */
3
+ /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
4
+
5
+ /* Atelier-Sulphurpool Comment */
6
+ .hljs-comment {
7
+ color: #6b7394;
8
+ }
9
+
10
+ /* Atelier-Sulphurpool Red */
11
+ .hljs-variable,
12
+ .hljs-attribute,
13
+ .hljs-tag,
14
+ .hljs-regexp,
15
+ .hljs-name,
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: #c94922;
25
+ }
26
+
27
+ /* Atelier-Sulphurpool Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-built_in,
31
+ .hljs-literal,
32
+ .hljs-params,
33
+ .hljs-constant {
34
+ color: #c76b29;
35
+ }
36
+
37
+ /* Atelier-Sulphurpool Yellow */
38
+ .ruby .hljs-class .hljs-title,
39
+ .css .hljs-rule .hljs-attribute {
40
+ color: #c08b30;
41
+ }
42
+
43
+ /* Atelier-Sulphurpool Green */
44
+ .hljs-string,
45
+ .hljs-value,
46
+ .hljs-inheritance,
47
+ .hljs-header,
48
+ .ruby .hljs-symbol,
49
+ .xml .hljs-cdata {
50
+ color: #ac9739;
51
+ }
52
+
53
+ /* Atelier-Sulphurpool Aqua */
54
+ .hljs-title,
55
+ .css .hljs-hexcolor {
56
+ color: #22a2c9;
57
+ }
58
+
59
+ /* Atelier-Sulphurpool Blue */
60
+ .hljs-function,
61
+ .python .hljs-decorator,
62
+ .python .hljs-title,
63
+ .ruby .hljs-function .hljs-title,
64
+ .ruby .hljs-title .hljs-keyword,
65
+ .perl .hljs-sub,
66
+ .javascript .hljs-title,
67
+ .coffeescript .hljs-title {
68
+ color: #3d8fd1;
69
+ }
70
+
71
+ /* Atelier-Sulphurpool Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #6679cc;
75
+ }
76
+
77
+ .hljs {
78
+ display: block;
79
+ overflow-x: auto;
80
+ background: #f5f7ff;
81
+ color: #5e6687;
82
+ padding: 0.5em;
83
+ -webkit-text-size-adjust: none;
84
+ }
85
+
86
+ .coffeescript .javascript,
87
+ .javascript .xml,
88
+ .tex .hljs-formula,
89
+ .xml .javascript,
90
+ .xml .vbscript,
91
+ .xml .css,
92
+ .xml .hljs-cdata {
93
+ opacity: 0.5;
94
+ }
@@ -0,0 +1,103 @@
1
+ /*
2
+
3
+ Brown Paper style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background:#b7a68e url(./brown_papersq.png);
12
+ -webkit-text-size-adjust: none;
13
+ }
14
+
15
+ .hljs-keyword,
16
+ .hljs-literal,
17
+ .hljs-change,
18
+ .hljs-winutils,
19
+ .hljs-flow,
20
+ .nginx .hljs-title,
21
+ .tex .hljs-special,
22
+ .hljs-request,
23
+ .hljs-status {
24
+ color:#005599;
25
+ font-weight:bold;
26
+ }
27
+
28
+ .hljs,
29
+ .hljs-subst,
30
+ .hljs-tag .hljs-keyword {
31
+ color: #363c69;
32
+ }
33
+
34
+ .hljs-string,
35
+ .hljs-title,
36
+ .hljs-type,
37
+ .hljs-tag .hljs-value,
38
+ .css .hljs-rule .hljs-value,
39
+ .hljs-preprocessor,
40
+ .hljs-pragma,
41
+ .ruby .hljs-symbol,
42
+ .ruby .hljs-symbol .hljs-string,
43
+ .ruby .hljs-class .hljs-parent,
44
+ .hljs-built_in,
45
+ .django .hljs-template_tag,
46
+ .django .hljs-variable,
47
+ .smalltalk .hljs-class,
48
+ .ruby .hljs-string,
49
+ .django .hljs-filter .hljs-argument,
50
+ .smalltalk .hljs-localvars,
51
+ .smalltalk .hljs-array,
52
+ .hljs-attr_selector,
53
+ .hljs-pseudo,
54
+ .hljs-addition,
55
+ .hljs-stream,
56
+ .hljs-envvar,
57
+ .apache .hljs-tag,
58
+ .apache .hljs-cbracket,
59
+ .tex .hljs-number,
60
+ .hljs-name {
61
+ color: #2c009f;
62
+ }
63
+
64
+ .hljs-comment,
65
+ .hljs-annotation,
66
+ .hljs-decorator,
67
+ .hljs-pi,
68
+ .hljs-doctype,
69
+ .hljs-deletion,
70
+ .hljs-shebang,
71
+ .apache .hljs-sqbracket,
72
+ .nginx .hljs-built_in,
73
+ .tex .hljs-formula {
74
+ color: #802022;
75
+ }
76
+
77
+ .hljs-keyword,
78
+ .hljs-literal,
79
+ .css .hljs-id,
80
+ .hljs-doctag,
81
+ .hljs-title,
82
+ .hljs-type,
83
+ .vbscript .hljs-built_in,
84
+ .rsl .hljs-built_in,
85
+ .smalltalk .hljs-class,
86
+ .diff .hljs-header,
87
+ .hljs-chunk,
88
+ .hljs-winutils,
89
+ .bash .hljs-variable,
90
+ .apache .hljs-tag,
91
+ .tex .hljs-command {
92
+ font-weight: bold;
93
+ }
94
+
95
+ .coffeescript .javascript,
96
+ .javascript .xml,
97
+ .tex .hljs-formula,
98
+ .xml .javascript,
99
+ .xml .vbscript,
100
+ .xml .css,
101
+ .xml .hljs-cdata {
102
+ opacity: 0.8;
103
+ }
@@ -0,0 +1,97 @@
1
+ /*
2
+ codepen.io Embed Theme
3
+ Author: Justin Perry <http://github.com/ourmaninamsterdam>
4
+ Original theme - https://github.com/chriskempson/tomorrow-theme
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #222;
12
+ color: #fff;
13
+ font-family: Menlo, Monaco, 'Andale Mono', 'Lucida Console', 'Courier New', monospace;
14
+ -webkit-text-size-adjust: none;
15
+ }
16
+
17
+ .hljs-comment,
18
+ .hljs-title {
19
+ color: #777;
20
+ }
21
+
22
+ .hljs-variable,
23
+ .hljs-attribute,
24
+ .hljs-tag,
25
+ .hljs-regexp,
26
+ .hljs-name,
27
+ .ruby .constant,
28
+ .xml .tag .title,
29
+ .xml .pi,
30
+ .xml .doctype,
31
+ .html .doctype {
32
+ color: #ab875d;
33
+ }
34
+
35
+ .css .value {
36
+ color: #cd6a51;
37
+ }
38
+
39
+ .css .value .function,
40
+ .css .value .string {
41
+ color: #a67f59;
42
+ }
43
+
44
+ .css .value .number {
45
+ color: #9b869c;
46
+ }
47
+
48
+ .css .id,
49
+ .css .class,
50
+ .css-pseudo,
51
+ .css .selector,
52
+ .css .tag {
53
+ color: #dfc48c;
54
+ }
55
+
56
+ .hljs-number,
57
+ .hljs-preprocessor,
58
+ .hljs-built_in,
59
+ .hljs-literal,
60
+ .hljs-params,
61
+ .hljs-constant {
62
+ color: #ab875d;
63
+ }
64
+
65
+ .ruby .class .title,
66
+ .css .rules .attribute {
67
+ color: #9b869b;
68
+ }
69
+
70
+ .hljs-string,
71
+ .hljs-value,
72
+ .hljs-inheritance,
73
+ .hljs-header,
74
+ .ruby .symbol,
75
+ .xml .cdata {
76
+ color: #8f9c6c;
77
+ }
78
+
79
+ .css .hexcolor {
80
+ color: #cd6a51;
81
+ }
82
+
83
+ .function,
84
+ .python .decorator,
85
+ .python .title,
86
+ .ruby .function .title,
87
+ .ruby .title .keyword,
88
+ .perl .sub,
89
+ .javascript .title,
90
+ .coffeescript .title {
91
+ color: #fff;
92
+ }
93
+
94
+ .hljs-keyword,
95
+ .javascript .function {
96
+ color: #8f9c6c;
97
+ }
@@ -0,0 +1,165 @@
1
+ /*
2
+
3
+ Colorbrewer theme
4
+ Original: https://github.com/mbostock/colorbrewer-theme (c) Mike Bostock <mike@ocks.org>
5
+ Ported by Fabrício Tavares de Oliveira
6
+
7
+ */
8
+
9
+ .hljs {
10
+ display: block;
11
+ overflow-x: auto;
12
+ padding: 0.5em;
13
+ background: #fff;
14
+ -webkit-text-size-adjust: none;
15
+ }
16
+
17
+ .hljs,
18
+ .hljs-subst,
19
+ .hljs-tag .hljs-title,
20
+ .nginx .hljs-title {
21
+ color: #000;
22
+ }
23
+
24
+ .hljs-string,
25
+ .hljs-title,
26
+ .hljs-constant,
27
+ .hljs-parent,
28
+ .hljs-tag .hljs-value,
29
+ .hljs-rule .hljs-value,
30
+ .hljs-preprocessor,
31
+ .hljs-pragma,
32
+ .haml .hljs-symbol,
33
+ .ruby .hljs-symbol,
34
+ .ruby .hljs-symbol .hljs-string,
35
+ .hljs-template_tag,
36
+ .django .hljs-variable,
37
+ .smalltalk .hljs-class,
38
+ .hljs-addition,
39
+ .hljs-flow,
40
+ .hljs-stream,
41
+ .bash .hljs-variable,
42
+ .apache .hljs-tag,
43
+ .apache .hljs-cbracket,
44
+ .tex .hljs-command,
45
+ .tex .hljs-special,
46
+ .erlang_repl .hljs-function_or_atom,
47
+ .asciidoc .hljs-header,
48
+ .markdown .hljs-header,
49
+ .coffeescript .hljs-attribute,
50
+ .hljs-name {
51
+ color: #756bb1;
52
+ }
53
+
54
+ .smartquote,
55
+ .hljs-comment,
56
+ .hljs-annotation,
57
+ .diff .hljs-header,
58
+ .hljs-chunk,
59
+ .asciidoc .hljs-blockquote,
60
+ .markdown .hljs-blockquote {
61
+ color: #636363;
62
+ }
63
+
64
+ .hljs-number,
65
+ .hljs-date,
66
+ .hljs-regexp,
67
+ .hljs-literal,
68
+ .hljs-hexcolor,
69
+ .smalltalk .hljs-symbol,
70
+ .smalltalk .hljs-char,
71
+ .go .hljs-constant,
72
+ .hljs-change,
73
+ .lasso .hljs-variable,
74
+ .makefile .hljs-variable,
75
+ .asciidoc .hljs-bullet,
76
+ .markdown .hljs-bullet,
77
+ .asciidoc .hljs-link_url,
78
+ .markdown .hljs-link_url {
79
+ color: #31a354;
80
+ }
81
+
82
+ .hljs-label,
83
+ .ruby .hljs-string,
84
+ .hljs-decorator,
85
+ .hljs-filter .hljs-argument,
86
+ .hljs-localvars,
87
+ .hljs-array,
88
+ .hljs-attr_selector,
89
+ .hljs-important,
90
+ .hljs-pseudo,
91
+ .hljs-pi,
92
+ .haml .hljs-bullet,
93
+ .hljs-doctype,
94
+ .hljs-deletion,
95
+ .hljs-envvar,
96
+ .hljs-shebang,
97
+ .apache .hljs-sqbracket,
98
+ .nginx .hljs-built_in,
99
+ .hljs-list .hljs-built_in,
100
+ .tex .hljs-formula,
101
+ .erlang_repl .hljs-reserved,
102
+ .hljs-prompt,
103
+ .asciidoc .hljs-link_label,
104
+ .markdown .hljs-link_label,
105
+ .vhdl .hljs-attribute,
106
+ .clojure .hljs-attribute,
107
+ .asciidoc .hljs-attribute,
108
+ .lasso .hljs-attribute,
109
+ .coffeescript .hljs-property,
110
+ .hljs-phony {
111
+ color: #88f;
112
+ }
113
+
114
+
115
+
116
+ .hljs-keyword,
117
+ .hljs-id,
118
+ .hljs-title,
119
+ .hljs-built_in,
120
+ .css .hljs-tag,
121
+ .hljs-doctag,
122
+ .smalltalk .hljs-class,
123
+ .hljs-winutils,
124
+ .bash .hljs-variable,
125
+ .apache .hljs-tag,
126
+ .hljs-type,
127
+ .hljs-typename,
128
+ .tex .hljs-command,
129
+ .asciidoc .hljs-strong,
130
+ .markdown .hljs-strong,
131
+ .hljs-request,
132
+ .hljs-status {
133
+ color: #3182bd;
134
+ }
135
+
136
+ .asciidoc .hljs-emphasis,
137
+ .markdown .hljs-emphasis {
138
+ font-style: italic;
139
+ }
140
+
141
+ .nginx .hljs-built_in {
142
+ font-weight: normal;
143
+ }
144
+
145
+ .coffeescript .javascript,
146
+ .javascript .xml,
147
+ .lasso .markup,
148
+ .tex .hljs-formula,
149
+ .xml .javascript,
150
+ .xml .vbscript,
151
+ .xml .css,
152
+ .xml .hljs-cdata {
153
+ opacity: 0.5;
154
+ }
155
+
156
+ .css .hljs-attribute,
157
+ .html .hljs-attribute {
158
+ color: #e6550d;
159
+ }
160
+
161
+ .css .hljs-class,
162
+ .html .hljs-tag,
163
+ .html .hljs-title {
164
+ color: #3182bd;
165
+ }