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,152 @@
1
+ /**
2
+ * Obsidian style
3
+ * ported by Alexander Marenin (http://github.com/ioncreature)
4
+ */
5
+
6
+ .hljs {
7
+ display: block;
8
+ overflow-x: auto;
9
+ padding: 0.5em;
10
+ background: #282b2e;
11
+ -webkit-text-size-adjust: none;
12
+ }
13
+
14
+ .hljs-keyword,
15
+ .hljs-literal,
16
+ .hljs-change,
17
+ .hljs-winutils,
18
+ .hljs-flow,
19
+ .nginx .hljs-title,
20
+ .css .hljs-id,
21
+ .tex .hljs-special {
22
+ color: #93c763;
23
+ }
24
+
25
+ .hljs-number {
26
+ color: #ffcd22;
27
+ }
28
+
29
+ .hljs {
30
+ color: #e0e2e4;
31
+ }
32
+
33
+ .css .hljs-tag,
34
+ .css .hljs-pseudo {
35
+ color: #d0d2b5;
36
+ }
37
+
38
+ .hljs-attribute,
39
+ .hljs .hljs-constant {
40
+ color: #668bb0;
41
+ }
42
+
43
+ .xml .hljs-attribute {
44
+ color: #b3b689;
45
+ }
46
+
47
+ .xml .hljs-tag .hljs-value {
48
+ color: #e8e2b7;
49
+ }
50
+
51
+ .hljs-code,
52
+ .hljs-class .hljs-title,
53
+ .hljs-header {
54
+ color: white;
55
+ }
56
+
57
+ .hljs-class,
58
+ .hljs-hexcolor {
59
+ color: #93c763;
60
+ }
61
+
62
+ .hljs-regexp {
63
+ color: #d39745;
64
+ }
65
+
66
+ .hljs-at_rule,
67
+ .hljs-at_rule .hljs-keyword {
68
+ color: #a082bd;
69
+ }
70
+
71
+ .hljs-doctype {
72
+ color: #557182;
73
+ }
74
+
75
+ .hljs-link_url,
76
+ .hljs-tag,
77
+ .hljs-tag .hljs-title,
78
+ .hljs-bullet,
79
+ .hljs-subst,
80
+ .hljs-emphasis,
81
+ .hljs-type,
82
+ .hljs-preprocessor,
83
+ .hljs-pragma,
84
+ .ruby .hljs-class .hljs-parent,
85
+ .hljs-built_in,
86
+ .django .hljs-template_tag,
87
+ .django .hljs-variable,
88
+ .smalltalk .hljs-class,
89
+ .django .hljs-filter .hljs-argument,
90
+ .smalltalk .hljs-localvars,
91
+ .smalltalk .hljs-array,
92
+ .hljs-attr_selector,
93
+ .hljs-pseudo,
94
+ .hljs-addition,
95
+ .hljs-stream,
96
+ .hljs-envvar,
97
+ .apache .hljs-tag,
98
+ .apache .hljs-cbracket,
99
+ .tex .hljs-command,
100
+ .hljs-prompt,
101
+ .hljs-name {
102
+ color: #8cbbad;
103
+ }
104
+
105
+ .hljs-string {
106
+ color: #ec7600;
107
+ }
108
+
109
+ .hljs-comment,
110
+ .hljs-annotation,
111
+ .hljs-blockquote,
112
+ .hljs-horizontal_rule,
113
+ .hljs-decorator,
114
+ .hljs-pi,
115
+ .hljs-deletion,
116
+ .hljs-shebang,
117
+ .apache .hljs-sqbracket,
118
+ .tex .hljs-formula {
119
+ color: #818e96;
120
+ }
121
+
122
+ .hljs-keyword,
123
+ .hljs-literal,
124
+ .css .hljs-id,
125
+ .hljs-doctag,
126
+ .hljs-title,
127
+ .hljs-header,
128
+ .hljs-type,
129
+ .vbscript .hljs-built_in,
130
+ .rsl .hljs-built_in,
131
+ .smalltalk .hljs-class,
132
+ .diff .hljs-header,
133
+ .hljs-chunk,
134
+ .hljs-winutils,
135
+ .bash .hljs-variable,
136
+ .apache .hljs-tag,
137
+ .tex .hljs-special,
138
+ .hljs-request,
139
+ .hljs-at_rule .hljs-keyword,
140
+ .hljs-status {
141
+ font-weight: bold;
142
+ }
143
+
144
+ .coffeescript .javascript,
145
+ .javascript .xml,
146
+ .tex .hljs-formula,
147
+ .xml .javascript,
148
+ .xml .vbscript,
149
+ .xml .css,
150
+ .xml .hljs-cdata {
151
+ opacity: 0.5;
152
+ }
@@ -0,0 +1,96 @@
1
+ /*
2
+ Paraíso (dark)
3
+ Created by Jan T. Sott (http://github.com/idleberg)
4
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
5
+ */
6
+
7
+ /* Paraíso Comment */
8
+ .hljs-comment,
9
+ .hljs-title {
10
+ color: #8d8687;
11
+ }
12
+
13
+ /* Paraíso Red */
14
+ .hljs-variable,
15
+ .hljs-attribute,
16
+ .hljs-tag,
17
+ .hljs-regexp,
18
+ .hljs-name,
19
+ .ruby .hljs-constant,
20
+ .xml .hljs-tag .hljs-title,
21
+ .xml .hljs-pi,
22
+ .xml .hljs-doctype,
23
+ .html .hljs-doctype,
24
+ .css .hljs-id,
25
+ .css .hljs-class,
26
+ .css .hljs-pseudo {
27
+ color: #ef6155;
28
+ }
29
+
30
+ /* Paraíso Orange */
31
+ .hljs-number,
32
+ .hljs-preprocessor,
33
+ .hljs-built_in,
34
+ .hljs-literal,
35
+ .hljs-params,
36
+ .hljs-constant {
37
+ color: #f99b15;
38
+ }
39
+
40
+ /* Paraíso Yellow */
41
+ .ruby .hljs-class .hljs-title,
42
+ .css .hljs-rule .hljs-attribute {
43
+ color: #fec418;
44
+ }
45
+
46
+ /* Paraíso Green */
47
+ .hljs-string,
48
+ .hljs-value,
49
+ .hljs-inheritance,
50
+ .hljs-header,
51
+ .ruby .hljs-symbol,
52
+ .xml .hljs-cdata {
53
+ color: #48b685;
54
+ }
55
+
56
+ /* Paraíso Aqua */
57
+ .css .hljs-hexcolor {
58
+ color: #5bc4bf;
59
+ }
60
+
61
+ /* Paraíso 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: #06b6ef;
71
+ }
72
+
73
+ /* Paraíso Purple */
74
+ .hljs-keyword,
75
+ .javascript .hljs-function {
76
+ color: #815ba4;
77
+ }
78
+
79
+ .hljs {
80
+ display: block;
81
+ overflow-x: auto;
82
+ background: #2f1e2e;
83
+ color: #a39e9b;
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,96 @@
1
+ /*
2
+ Paraíso (light)
3
+ Created by Jan T. Sott (http://github.com/idleberg)
4
+ Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
5
+ */
6
+
7
+ /* Paraíso Comment */
8
+ .hljs-comment,
9
+ .hljs-title {
10
+ color: #776e71;
11
+ }
12
+
13
+ /* Paraíso Red */
14
+ .hljs-variable,
15
+ .hljs-attribute,
16
+ .hljs-tag,
17
+ .hljs-regexp,
18
+ .hljs-name,
19
+ .ruby .hljs-constant,
20
+ .xml .hljs-tag .hljs-title,
21
+ .xml .hljs-pi,
22
+ .xml .hljs-doctype,
23
+ .html .hljs-doctype,
24
+ .css .hljs-id,
25
+ .css .hljs-class,
26
+ .css .hljs-pseudo {
27
+ color: #ef6155;
28
+ }
29
+
30
+ /* Paraíso Orange */
31
+ .hljs-number,
32
+ .hljs-preprocessor,
33
+ .hljs-built_in,
34
+ .hljs-literal,
35
+ .hljs-params,
36
+ .hljs-constant {
37
+ color: #f99b15;
38
+ }
39
+
40
+ /* Paraíso Yellow */
41
+ .ruby .hljs-class .hljs-title,
42
+ .css .hljs-rule .hljs-attribute {
43
+ color: #fec418;
44
+ }
45
+
46
+ /* Paraíso Green */
47
+ .hljs-string,
48
+ .hljs-value,
49
+ .hljs-inheritance,
50
+ .hljs-header,
51
+ .ruby .hljs-symbol,
52
+ .xml .hljs-cdata {
53
+ color: #48b685;
54
+ }
55
+
56
+ /* Paraíso Aqua */
57
+ .css .hljs-hexcolor {
58
+ color: #5bc4bf;
59
+ }
60
+
61
+ /* Paraíso 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: #06b6ef;
71
+ }
72
+
73
+ /* Paraíso Purple */
74
+ .hljs-keyword,
75
+ .javascript .hljs-function {
76
+ color: #815ba4;
77
+ }
78
+
79
+ .hljs {
80
+ display: block;
81
+ overflow-x: auto;
82
+ background: #e7e9db;
83
+ color: #4f424c;
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,106 @@
1
+ /*
2
+
3
+ Pojoaque Style by Jason Tate
4
+ http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html
5
+ Based on Solarized Style from http://ethanschoonover.com/solarized
6
+
7
+ */
8
+
9
+ .hljs {
10
+ display: block;
11
+ overflow-x: auto;
12
+ padding: 0.5em;
13
+ color: #dccf8f;
14
+ background: url(./pojoaque.jpg) repeat scroll left top #181914;
15
+ -webkit-text-size-adjust: none;
16
+ }
17
+
18
+ .hljs-comment,
19
+ .diff .hljs-header,
20
+ .hljs-doctype,
21
+ .lisp .hljs-string {
22
+ color: #586e75;
23
+ font-style: italic;
24
+ }
25
+
26
+ .hljs-keyword,
27
+ .css .rule .hljs-keyword,
28
+ .hljs-winutils,
29
+ .javascript .hljs-title,
30
+ .method,
31
+ .hljs-addition,
32
+ .css .hljs-tag,
33
+ .hljs-list .hljs-keyword,
34
+ .nginx .hljs-title {
35
+ color: #b64926;
36
+ }
37
+
38
+ .hljs-number,
39
+ .hljs-command,
40
+ .hljs-string,
41
+ .hljs-tag .hljs-value,
42
+ .hljs-doctag,
43
+ .tex .hljs-formula,
44
+ .hljs-regexp,
45
+ .hljs-hexcolor {
46
+ color: #468966;
47
+ }
48
+
49
+ .hljs-title,
50
+ .hljs-localvars,
51
+ .hljs-function .hljs-title,
52
+ .hljs-chunk,
53
+ .hljs-decorator,
54
+ .hljs-built_in,
55
+ .hljs-identifier,
56
+ .hljs-name,
57
+ .hljs-id {
58
+ color: #ffb03b;
59
+ }
60
+
61
+ .hljs-attribute,
62
+ .hljs-variable,
63
+ .lisp .hljs-body,
64
+ .smalltalk .hljs-number,
65
+ .hljs-constant,
66
+ .hljs-class .hljs-title,
67
+ .hljs-parent,
68
+ .hljs-type {
69
+ color: #b58900;
70
+ }
71
+
72
+ .css .hljs-attribute {
73
+ color: #b89859;
74
+ }
75
+
76
+ .css .hljs-number,
77
+ .css .hljs-hexcolor {
78
+ color: #dccf8f;
79
+ }
80
+
81
+ .css .hljs-class {
82
+ color: #d3a60c;
83
+ }
84
+
85
+ .hljs-preprocessor,
86
+ .hljs-pragma,
87
+ .hljs-pi,
88
+ .hljs-shebang,
89
+ .hljs-symbol,
90
+ .hljs-symbol .hljs-string,
91
+ .diff .hljs-change,
92
+ .hljs-special,
93
+ .hljs-attr_selector,
94
+ .hljs-important,
95
+ .hljs-subst,
96
+ .hljs-cdata {
97
+ color: #cb4b16;
98
+ }
99
+
100
+ .hljs-deletion {
101
+ color: #dc322f;
102
+ }
103
+
104
+ .tex .hljs-formula {
105
+ background: #073642;
106
+ }