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,52 @@
1
+ /*
2
+
3
+ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: white;
12
+ color: black;
13
+ -webkit-text-size-adjust: none;
14
+ }
15
+
16
+ .hljs-string,
17
+ .hljs-tag .hljs-value,
18
+ .hljs-filter .hljs-argument,
19
+ .hljs-addition,
20
+ .hljs-change,
21
+ .hljs-name,
22
+ .apache .hljs-tag,
23
+ .apache .hljs-cbracket,
24
+ .nginx .hljs-built_in,
25
+ .tex .hljs-formula {
26
+ color: #888;
27
+ }
28
+
29
+ .hljs-comment,
30
+ .hljs-shebang,
31
+ .hljs-doctype,
32
+ .hljs-pi,
33
+ .hljs-deletion,
34
+ .apache .hljs-sqbracket {
35
+ color: #ccc;
36
+ }
37
+
38
+ .hljs-keyword,
39
+ .hljs-tag .hljs-title,
40
+ .ini .hljs-title,
41
+ .lisp .hljs-title,
42
+ .http .hljs-title,
43
+ .nginx .hljs-title,
44
+ .css .hljs-tag,
45
+ .hljs-winutils,
46
+ .hljs-flow,
47
+ .apache .hljs-tag,
48
+ .tex .hljs-command,
49
+ .hljs-request,
50
+ .hljs-status {
51
+ font-weight: bold;
52
+ }
@@ -0,0 +1,113 @@
1
+ /* Base16 Atelier Cave Dark - Theme */
2
+ /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave) */
3
+ /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
4
+
5
+ /* Atelier-Cave Comment */
6
+ .hljs-comment {
7
+ color: #7e7887;
8
+ }
9
+
10
+ /* Atelier-Cave 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: #be4678;
25
+ }
26
+
27
+ /* Atelier-Cave Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-built_in,
31
+ .hljs-literal,
32
+ .hljs-params,
33
+ .hljs-constant {
34
+ color: #aa573c;
35
+ }
36
+
37
+ /* Atelier-Cave Yellow */
38
+ .ruby .hljs-class .hljs-title,
39
+ .css .hljs-rule .hljs-attribute {
40
+ color: #a06e3b;
41
+ }
42
+
43
+ /* Atelier-Cave Green */
44
+ .hljs-string,
45
+ .hljs-value,
46
+ .hljs-inheritance,
47
+ .hljs-header,
48
+ .ruby .hljs-symbol,
49
+ .xml .hljs-cdata {
50
+ color: #2a9292;
51
+ }
52
+
53
+ /* Atelier-Cave Aqua */
54
+ .hljs-title,
55
+ .css .hljs-hexcolor {
56
+ color: #398bc6;
57
+ }
58
+
59
+ /* Atelier-Cave 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: #576ddb;
69
+ }
70
+
71
+ /* Atelier-Cave Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #955ae7;
75
+ }
76
+
77
+ .diff .hljs-deletion,
78
+ .diff .hljs-addition {
79
+ color: #19171c;
80
+ display: inline-block;
81
+ width: 100%;
82
+ }
83
+
84
+ .diff .hljs-deletion {
85
+ background-color: #be4678;
86
+ }
87
+
88
+ .diff .hljs-addition {
89
+ background-color: #2a9292;
90
+ }
91
+
92
+ .diff .hljs-change {
93
+ color: #576ddb;
94
+ }
95
+
96
+ .hljs {
97
+ display: block;
98
+ overflow-x: auto;
99
+ background: #19171c;
100
+ color: #8b8792;
101
+ padding: 0.5em;
102
+ -webkit-text-size-adjust: none;
103
+ }
104
+
105
+ .coffeescript .javascript,
106
+ .javascript .xml,
107
+ .tex .hljs-formula,
108
+ .xml .javascript,
109
+ .xml .vbscript,
110
+ .xml .css,
111
+ .xml .hljs-cdata {
112
+ opacity: 0.5;
113
+ }
@@ -0,0 +1,113 @@
1
+ /* Base16 Atelier Cave Light - Theme */
2
+ /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave) */
3
+ /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
4
+
5
+ /* Atelier-Cave Comment */
6
+ .hljs-comment {
7
+ color: #655f6d;
8
+ }
9
+
10
+ /* Atelier-Cave 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: #be4678;
25
+ }
26
+
27
+ /* Atelier-Cave Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-built_in,
31
+ .hljs-literal,
32
+ .hljs-params,
33
+ .hljs-constant {
34
+ color: #aa573c;
35
+ }
36
+
37
+ /* Atelier-Cave Yellow */
38
+ .ruby .hljs-class .hljs-title,
39
+ .css .hljs-rule .hljs-attribute {
40
+ color: #a06e3b;
41
+ }
42
+
43
+ /* Atelier-Cave Green */
44
+ .hljs-string,
45
+ .hljs-value,
46
+ .hljs-inheritance,
47
+ .hljs-header,
48
+ .ruby .hljs-symbol,
49
+ .xml .hljs-cdata {
50
+ color: #2a9292;
51
+ }
52
+
53
+ /* Atelier-Cave Aqua */
54
+ .hljs-title,
55
+ .css .hljs-hexcolor {
56
+ color: #398bc6;
57
+ }
58
+
59
+ /* Atelier-Cave 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: #576ddb;
69
+ }
70
+
71
+ /* Atelier-Cave Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #955ae7;
75
+ }
76
+
77
+ .diff .hljs-deletion,
78
+ .diff .hljs-addition {
79
+ color: #19171c;
80
+ display: inline-block;
81
+ width: 100%;
82
+ }
83
+
84
+ .diff .hljs-deletion {
85
+ background-color: #be4678;
86
+ }
87
+
88
+ .diff .hljs-addition {
89
+ background-color: #2a9292;
90
+ }
91
+
92
+ .diff .hljs-change {
93
+ color: #576ddb;
94
+ }
95
+
96
+ .hljs {
97
+ display: block;
98
+ overflow-x: auto;
99
+ background: #efecf4;
100
+ color: #585260;
101
+ padding: 0.5em;
102
+ -webkit-text-size-adjust: none;
103
+ }
104
+
105
+ .coffeescript .javascript,
106
+ .javascript .xml,
107
+ .tex .hljs-formula,
108
+ .xml .javascript,
109
+ .xml .vbscript,
110
+ .xml .css,
111
+ .xml .hljs-cdata {
112
+ opacity: 0.5;
113
+ }
@@ -0,0 +1,94 @@
1
+ /* Base16 Atelier Dune Dark - Theme */
2
+ /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */
3
+ /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
4
+
5
+ /* Atelier-Dune Comment */
6
+ .hljs-comment {
7
+ color: #999580;
8
+ }
9
+
10
+ /* Atelier-Dune 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: #d73737;
25
+ }
26
+
27
+ /* Atelier-Dune Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-built_in,
31
+ .hljs-literal,
32
+ .hljs-params,
33
+ .hljs-constant {
34
+ color: #b65611;
35
+ }
36
+
37
+ /* Atelier-Dune Yellow */
38
+ .ruby .hljs-class .hljs-title,
39
+ .css .hljs-rule .hljs-attribute {
40
+ color: #ae9513;
41
+ }
42
+
43
+ /* Atelier-Dune Green */
44
+ .hljs-string,
45
+ .hljs-value,
46
+ .hljs-inheritance,
47
+ .hljs-header,
48
+ .ruby .hljs-symbol,
49
+ .xml .hljs-cdata {
50
+ color: #60ac39;
51
+ }
52
+
53
+ /* Atelier-Dune Aqua */
54
+ .hljs-title,
55
+ .css .hljs-hexcolor {
56
+ color: #1fad83;
57
+ }
58
+
59
+ /* Atelier-Dune 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: #6684e1;
69
+ }
70
+
71
+ /* Atelier-Dune Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #b854d4;
75
+ }
76
+
77
+ .hljs {
78
+ display: block;
79
+ overflow-x: auto;
80
+ background: #20201d;
81
+ color: #a6a28c;
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,94 @@
1
+ /* Base16 Atelier Dune Light - Theme */
2
+ /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */
3
+ /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
4
+
5
+ /* Atelier-Dune Comment */
6
+ .hljs-comment {
7
+ color: #7d7a68;
8
+ }
9
+
10
+ /* Atelier-Dune 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: #d73737;
25
+ }
26
+
27
+ /* Atelier-Dune Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-built_in,
31
+ .hljs-literal,
32
+ .hljs-params,
33
+ .hljs-constant {
34
+ color: #b65611;
35
+ }
36
+
37
+ /* Atelier-Dune Yellow */
38
+ .ruby .hljs-class .hljs-title,
39
+ .css .hljs-rule .hljs-attribute {
40
+ color: #ae9513;
41
+ }
42
+
43
+ /* Atelier-Dune Green */
44
+ .hljs-string,
45
+ .hljs-value,
46
+ .hljs-inheritance,
47
+ .hljs-header,
48
+ .ruby .hljs-symbol,
49
+ .xml .hljs-cdata {
50
+ color: #60ac39;
51
+ }
52
+
53
+ /* Atelier-Dune Aqua */
54
+ .hljs-title,
55
+ .css .hljs-hexcolor {
56
+ color: #1fad83;
57
+ }
58
+
59
+ /* Atelier-Dune 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: #6684e1;
69
+ }
70
+
71
+ /* Atelier-Dune Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #b854d4;
75
+ }
76
+
77
+ .hljs {
78
+ display: block;
79
+ overflow-x: auto;
80
+ background: #fefbec;
81
+ color: #6e6b5e;
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
+ }