markdown_views 2.4.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -8
- data/README.md +17 -11
- data/Rakefile +5 -5
- data/app/assets/stylesheets/rouge.base16.dark.css +43 -30
- data/app/assets/stylesheets/rouge.base16.light.css +42 -29
- data/app/assets/stylesheets/rouge.base16.monokai.dark.css +16 -3
- data/app/assets/stylesheets/rouge.base16.monokai.light.css +16 -3
- data/app/assets/stylesheets/rouge.base16.solarized.dark.css +16 -3
- data/app/assets/stylesheets/rouge.base16.solarized.light.css +16 -3
- data/app/assets/stylesheets/rouge.bw.css +70 -0
- data/app/assets/stylesheets/rouge.colorful.css +12 -4
- data/app/assets/stylesheets/rouge.github.dark.css +116 -0
- data/app/assets/stylesheets/rouge.github.light.css +116 -0
- data/app/assets/stylesheets/rouge.gruvbox.dark.css +16 -3
- data/app/assets/stylesheets/rouge.gruvbox.light.css +16 -3
- data/app/assets/stylesheets/rouge.igorpro.css +15 -2
- data/app/assets/stylesheets/rouge.molokai.css +8 -5
- data/app/assets/stylesheets/rouge.monokai.css +12 -5
- data/app/assets/stylesheets/rouge.monokai.sublime.css +23 -7
- data/app/assets/stylesheets/rouge.pastie.css +13 -5
- data/app/assets/stylesheets/rouge.thankful_eyes.css +13 -6
- data/app/assets/stylesheets/rouge.tulip.css +13 -6
- data/lib/markdown_views/config.rb +23 -7
- data/lib/markdown_views/handler.rb +0 -21
- data/lib/markdown_views/renderer.rb +24 -7
- data/lib/markdown_views/version.rb +1 -1
- data/lib/markdown_views.rb +2 -5
- data/markdown_views.gemspec +6 -3
- data/test/config_test.rb +69 -0
- data/test/render_test.rb +50 -0
- data/test/strip_comments_test.rb +0 -6
- data/test/test_helper.rb +16 -0
- metadata +33 -25
- data/app/assets/stylesheets/rouge.github.css +0 -209
@@ -4,7 +4,7 @@
|
|
4
4
|
color: #bbbbbb;
|
5
5
|
background-color: #000;
|
6
6
|
}
|
7
|
-
.rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1 {
|
7
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1 {
|
8
8
|
color: #888;
|
9
9
|
}
|
10
10
|
.rouge-highlight .cp {
|
@@ -34,7 +34,7 @@
|
|
34
34
|
.rouge-highlight .nb, .rouge-highlight .bp {
|
35
35
|
color: #007020;
|
36
36
|
}
|
37
|
-
.rouge-highlight .nf {
|
37
|
+
.rouge-highlight .nf, .rouge-highlight .fm {
|
38
38
|
color: #06B;
|
39
39
|
font-weight: bold;
|
40
40
|
}
|
@@ -50,7 +50,7 @@
|
|
50
50
|
color: #F00;
|
51
51
|
font-weight: bold;
|
52
52
|
}
|
53
|
-
.rouge-highlight .nv {
|
53
|
+
.rouge-highlight .nv, .rouge-highlight .vm {
|
54
54
|
color: #963;
|
55
55
|
}
|
56
56
|
.rouge-highlight .vi {
|
@@ -85,9 +85,13 @@
|
|
85
85
|
color: #555;
|
86
86
|
font-weight: bold;
|
87
87
|
}
|
88
|
-
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .s1 {
|
88
|
+
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .dl, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .s1 {
|
89
89
|
background-color: #fff0f0;
|
90
90
|
}
|
91
|
+
.rouge-highlight .sa {
|
92
|
+
color: #080;
|
93
|
+
font-weight: bold;
|
94
|
+
}
|
91
95
|
.rouge-highlight .sc {
|
92
96
|
color: #04D;
|
93
97
|
}
|
@@ -151,6 +155,10 @@
|
|
151
155
|
.rouge-highlight .ge {
|
152
156
|
font-style: italic;
|
153
157
|
}
|
158
|
+
.rouge-highlight .ges {
|
159
|
+
font-weight: bold;
|
160
|
+
font-style: italic;
|
161
|
+
}
|
154
162
|
.rouge-highlight .gs {
|
155
163
|
font-weight: bold;
|
156
164
|
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
.rouge-highlight table td { padding: 5px; }
|
2
|
+
.rouge-highlight table pre { margin: 0; }
|
3
|
+
.rouge-highlight, .rouge-highlight .w {
|
4
|
+
color: #c9d1d9;
|
5
|
+
background-color: #161b22;
|
6
|
+
}
|
7
|
+
.rouge-highlight .k, .rouge-highlight .kd, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kt, .rouge-highlight .kv {
|
8
|
+
color: #ff7b72;
|
9
|
+
}
|
10
|
+
.rouge-highlight .gr {
|
11
|
+
color: #f0f6fc;
|
12
|
+
}
|
13
|
+
.rouge-highlight .gd {
|
14
|
+
color: #ffdcd7;
|
15
|
+
background-color: #67060c;
|
16
|
+
}
|
17
|
+
.rouge-highlight .nb {
|
18
|
+
color: #ffa657;
|
19
|
+
}
|
20
|
+
.rouge-highlight .nc {
|
21
|
+
color: #ffa657;
|
22
|
+
}
|
23
|
+
.rouge-highlight .no {
|
24
|
+
color: #ffa657;
|
25
|
+
}
|
26
|
+
.rouge-highlight .nn {
|
27
|
+
color: #ffa657;
|
28
|
+
}
|
29
|
+
.rouge-highlight .sr {
|
30
|
+
color: #7ee787;
|
31
|
+
}
|
32
|
+
.rouge-highlight .na {
|
33
|
+
color: #7ee787;
|
34
|
+
}
|
35
|
+
.rouge-highlight .nt {
|
36
|
+
color: #7ee787;
|
37
|
+
}
|
38
|
+
.rouge-highlight .gi {
|
39
|
+
color: #aff5b4;
|
40
|
+
background-color: #033a16;
|
41
|
+
}
|
42
|
+
.rouge-highlight .ges {
|
43
|
+
font-weight: bold;
|
44
|
+
font-style: italic;
|
45
|
+
}
|
46
|
+
.rouge-highlight .kc {
|
47
|
+
color: #79c0ff;
|
48
|
+
}
|
49
|
+
.rouge-highlight .l, .rouge-highlight .ld, .rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
|
50
|
+
color: #79c0ff;
|
51
|
+
}
|
52
|
+
.rouge-highlight .sb {
|
53
|
+
color: #79c0ff;
|
54
|
+
}
|
55
|
+
.rouge-highlight .bp {
|
56
|
+
color: #79c0ff;
|
57
|
+
}
|
58
|
+
.rouge-highlight .ne {
|
59
|
+
color: #79c0ff;
|
60
|
+
}
|
61
|
+
.rouge-highlight .nl {
|
62
|
+
color: #79c0ff;
|
63
|
+
}
|
64
|
+
.rouge-highlight .py {
|
65
|
+
color: #79c0ff;
|
66
|
+
}
|
67
|
+
.rouge-highlight .nv, .rouge-highlight .vc, .rouge-highlight .vg, .rouge-highlight .vi, .rouge-highlight .vm {
|
68
|
+
color: #79c0ff;
|
69
|
+
}
|
70
|
+
.rouge-highlight .o, .rouge-highlight .ow {
|
71
|
+
color: #79c0ff;
|
72
|
+
}
|
73
|
+
.rouge-highlight .gh {
|
74
|
+
color: #1f6feb;
|
75
|
+
font-weight: bold;
|
76
|
+
}
|
77
|
+
.rouge-highlight .gu {
|
78
|
+
color: #1f6feb;
|
79
|
+
font-weight: bold;
|
80
|
+
}
|
81
|
+
.rouge-highlight .s, .rouge-highlight .sa, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .se, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1, .rouge-highlight .ss {
|
82
|
+
color: #a5d6ff;
|
83
|
+
}
|
84
|
+
.rouge-highlight .nd {
|
85
|
+
color: #d2a8ff;
|
86
|
+
}
|
87
|
+
.rouge-highlight .nf, .rouge-highlight .fm {
|
88
|
+
color: #d2a8ff;
|
89
|
+
}
|
90
|
+
.rouge-highlight .err {
|
91
|
+
color: #f0f6fc;
|
92
|
+
background-color: #8e1519;
|
93
|
+
}
|
94
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cp, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
|
95
|
+
color: #8b949e;
|
96
|
+
}
|
97
|
+
.rouge-highlight .gl {
|
98
|
+
color: #8b949e;
|
99
|
+
}
|
100
|
+
.rouge-highlight .gt {
|
101
|
+
color: #8b949e;
|
102
|
+
}
|
103
|
+
.rouge-highlight .ni {
|
104
|
+
color: #c9d1d9;
|
105
|
+
}
|
106
|
+
.rouge-highlight .si {
|
107
|
+
color: #c9d1d9;
|
108
|
+
}
|
109
|
+
.rouge-highlight .ge {
|
110
|
+
color: #c9d1d9;
|
111
|
+
font-style: italic;
|
112
|
+
}
|
113
|
+
.rouge-highlight .gs {
|
114
|
+
color: #c9d1d9;
|
115
|
+
font-weight: bold;
|
116
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
.rouge-highlight table td { padding: 5px; }
|
2
|
+
.rouge-highlight table pre { margin: 0; }
|
3
|
+
.rouge-highlight, .rouge-highlight .w {
|
4
|
+
color: #24292f;
|
5
|
+
background-color: #f6f8fa;
|
6
|
+
}
|
7
|
+
.rouge-highlight .k, .rouge-highlight .kd, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kt, .rouge-highlight .kv {
|
8
|
+
color: #cf222e;
|
9
|
+
}
|
10
|
+
.rouge-highlight .gr {
|
11
|
+
color: #f6f8fa;
|
12
|
+
}
|
13
|
+
.rouge-highlight .gd {
|
14
|
+
color: #82071e;
|
15
|
+
background-color: #ffebe9;
|
16
|
+
}
|
17
|
+
.rouge-highlight .nb {
|
18
|
+
color: #953800;
|
19
|
+
}
|
20
|
+
.rouge-highlight .nc {
|
21
|
+
color: #953800;
|
22
|
+
}
|
23
|
+
.rouge-highlight .no {
|
24
|
+
color: #953800;
|
25
|
+
}
|
26
|
+
.rouge-highlight .nn {
|
27
|
+
color: #953800;
|
28
|
+
}
|
29
|
+
.rouge-highlight .sr {
|
30
|
+
color: #116329;
|
31
|
+
}
|
32
|
+
.rouge-highlight .na {
|
33
|
+
color: #116329;
|
34
|
+
}
|
35
|
+
.rouge-highlight .nt {
|
36
|
+
color: #116329;
|
37
|
+
}
|
38
|
+
.rouge-highlight .gi {
|
39
|
+
color: #116329;
|
40
|
+
background-color: #dafbe1;
|
41
|
+
}
|
42
|
+
.rouge-highlight .ges {
|
43
|
+
font-weight: bold;
|
44
|
+
font-style: italic;
|
45
|
+
}
|
46
|
+
.rouge-highlight .kc {
|
47
|
+
color: #0550ae;
|
48
|
+
}
|
49
|
+
.rouge-highlight .l, .rouge-highlight .ld, .rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
|
50
|
+
color: #0550ae;
|
51
|
+
}
|
52
|
+
.rouge-highlight .sb {
|
53
|
+
color: #0550ae;
|
54
|
+
}
|
55
|
+
.rouge-highlight .bp {
|
56
|
+
color: #0550ae;
|
57
|
+
}
|
58
|
+
.rouge-highlight .ne {
|
59
|
+
color: #0550ae;
|
60
|
+
}
|
61
|
+
.rouge-highlight .nl {
|
62
|
+
color: #0550ae;
|
63
|
+
}
|
64
|
+
.rouge-highlight .py {
|
65
|
+
color: #0550ae;
|
66
|
+
}
|
67
|
+
.rouge-highlight .nv, .rouge-highlight .vc, .rouge-highlight .vg, .rouge-highlight .vi, .rouge-highlight .vm {
|
68
|
+
color: #0550ae;
|
69
|
+
}
|
70
|
+
.rouge-highlight .o, .rouge-highlight .ow {
|
71
|
+
color: #0550ae;
|
72
|
+
}
|
73
|
+
.rouge-highlight .gh {
|
74
|
+
color: #0550ae;
|
75
|
+
font-weight: bold;
|
76
|
+
}
|
77
|
+
.rouge-highlight .gu {
|
78
|
+
color: #0550ae;
|
79
|
+
font-weight: bold;
|
80
|
+
}
|
81
|
+
.rouge-highlight .s, .rouge-highlight .sa, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .se, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1, .rouge-highlight .ss {
|
82
|
+
color: #0a3069;
|
83
|
+
}
|
84
|
+
.rouge-highlight .nd {
|
85
|
+
color: #8250df;
|
86
|
+
}
|
87
|
+
.rouge-highlight .nf, .rouge-highlight .fm {
|
88
|
+
color: #8250df;
|
89
|
+
}
|
90
|
+
.rouge-highlight .err {
|
91
|
+
color: #f6f8fa;
|
92
|
+
background-color: #82071e;
|
93
|
+
}
|
94
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cp, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
|
95
|
+
color: #6e7781;
|
96
|
+
}
|
97
|
+
.rouge-highlight .gl {
|
98
|
+
color: #6e7781;
|
99
|
+
}
|
100
|
+
.rouge-highlight .gt {
|
101
|
+
color: #6e7781;
|
102
|
+
}
|
103
|
+
.rouge-highlight .ni {
|
104
|
+
color: #24292f;
|
105
|
+
}
|
106
|
+
.rouge-highlight .si {
|
107
|
+
color: #24292f;
|
108
|
+
}
|
109
|
+
.rouge-highlight .ge {
|
110
|
+
color: #24292f;
|
111
|
+
font-style: italic;
|
112
|
+
}
|
113
|
+
.rouge-highlight .gs {
|
114
|
+
color: #24292f;
|
115
|
+
font-weight: bold;
|
116
|
+
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
background-color: #282828;
|
10
10
|
font-weight: bold;
|
11
11
|
}
|
12
|
-
.rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1, .rouge-highlight .cs {
|
12
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
|
13
13
|
color: #928374;
|
14
14
|
font-style: italic;
|
15
15
|
}
|
@@ -37,6 +37,16 @@
|
|
37
37
|
color: #b8bb26;
|
38
38
|
font-weight: bold;
|
39
39
|
}
|
40
|
+
.rouge-highlight .ge {
|
41
|
+
font-style: italic;
|
42
|
+
}
|
43
|
+
.rouge-highlight .ges {
|
44
|
+
font-weight: bold;
|
45
|
+
font-style: italic;
|
46
|
+
}
|
47
|
+
.rouge-highlight .gs {
|
48
|
+
font-weight: bold;
|
49
|
+
}
|
40
50
|
.rouge-highlight .k, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kv {
|
41
51
|
color: #fb4934;
|
42
52
|
}
|
@@ -49,7 +59,7 @@
|
|
49
59
|
.rouge-highlight .kd {
|
50
60
|
color: #fe8019;
|
51
61
|
}
|
52
|
-
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
|
62
|
+
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
|
53
63
|
color: #b8bb26;
|
54
64
|
font-style: italic;
|
55
65
|
}
|
@@ -61,6 +71,9 @@
|
|
61
71
|
color: #b8bb26;
|
62
72
|
font-style: italic;
|
63
73
|
}
|
74
|
+
.rouge-highlight .sa {
|
75
|
+
color: #fb4934;
|
76
|
+
}
|
64
77
|
.rouge-highlight .se {
|
65
78
|
color: #fe8019;
|
66
79
|
}
|
@@ -76,7 +89,7 @@
|
|
76
89
|
.rouge-highlight .na {
|
77
90
|
color: #b8bb26;
|
78
91
|
}
|
79
|
-
.rouge-highlight .m, .rouge-highlight .
|
92
|
+
.rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
|
80
93
|
color: #d3869b;
|
81
94
|
}
|
82
95
|
.rouge-highlight .ss {
|
@@ -9,7 +9,7 @@
|
|
9
9
|
background-color: #fbf1c7;
|
10
10
|
font-weight: bold;
|
11
11
|
}
|
12
|
-
.rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1, .rouge-highlight .cs {
|
12
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
|
13
13
|
color: #928374;
|
14
14
|
font-style: italic;
|
15
15
|
}
|
@@ -37,6 +37,16 @@
|
|
37
37
|
color: #79740e;
|
38
38
|
font-weight: bold;
|
39
39
|
}
|
40
|
+
.rouge-highlight .ge {
|
41
|
+
font-style: italic;
|
42
|
+
}
|
43
|
+
.rouge-highlight .ges {
|
44
|
+
font-weight: bold;
|
45
|
+
font-style: italic;
|
46
|
+
}
|
47
|
+
.rouge-highlight .gs {
|
48
|
+
font-weight: bold;
|
49
|
+
}
|
40
50
|
.rouge-highlight .k, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kv {
|
41
51
|
color: #9d0006;
|
42
52
|
}
|
@@ -49,7 +59,7 @@
|
|
49
59
|
.rouge-highlight .kd {
|
50
60
|
color: #af3a03;
|
51
61
|
}
|
52
|
-
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
|
62
|
+
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
|
53
63
|
color: #79740e;
|
54
64
|
font-style: italic;
|
55
65
|
}
|
@@ -61,6 +71,9 @@
|
|
61
71
|
color: #79740e;
|
62
72
|
font-style: italic;
|
63
73
|
}
|
74
|
+
.rouge-highlight .sa {
|
75
|
+
color: #9d0006;
|
76
|
+
}
|
64
77
|
.rouge-highlight .se {
|
65
78
|
color: #af3a03;
|
66
79
|
}
|
@@ -76,7 +89,7 @@
|
|
76
89
|
.rouge-highlight .na {
|
77
90
|
color: #79740e;
|
78
91
|
}
|
79
|
-
.rouge-highlight .m, .rouge-highlight .
|
92
|
+
.rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
|
80
93
|
color: #8f3f71;
|
81
94
|
}
|
82
95
|
.rouge-highlight .ss {
|
@@ -9,9 +9,19 @@
|
|
9
9
|
.rouge-highlight .cs {
|
10
10
|
color: #CC00A3;
|
11
11
|
}
|
12
|
-
.rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1 {
|
12
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1 {
|
13
13
|
color: #FF0000;
|
14
14
|
}
|
15
|
+
.rouge-highlight .ge {
|
16
|
+
font-style: italic;
|
17
|
+
}
|
18
|
+
.rouge-highlight .ges {
|
19
|
+
font-weight: bold;
|
20
|
+
font-style: italic;
|
21
|
+
}
|
22
|
+
.rouge-highlight .gs {
|
23
|
+
font-weight: bold;
|
24
|
+
}
|
15
25
|
.rouge-highlight .kc {
|
16
26
|
color: #C34E00;
|
17
27
|
}
|
@@ -24,9 +34,12 @@
|
|
24
34
|
.rouge-highlight .k, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kt, .rouge-highlight .kv {
|
25
35
|
color: #0000FF;
|
26
36
|
}
|
27
|
-
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .se, .rouge-highlight .sh, .rouge-highlight .si, .rouge-highlight .sx, .rouge-highlight .sr, .rouge-highlight .s1, .rouge-highlight .ss {
|
37
|
+
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .se, .rouge-highlight .sh, .rouge-highlight .si, .rouge-highlight .sx, .rouge-highlight .sr, .rouge-highlight .s1, .rouge-highlight .ss {
|
28
38
|
color: #009C00;
|
29
39
|
}
|
40
|
+
.rouge-highlight .sa {
|
41
|
+
color: #0000FF;
|
42
|
+
}
|
30
43
|
.rouge-highlight .nb, .rouge-highlight .bp {
|
31
44
|
color: #C34E00;
|
32
45
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.rouge-highlight table td { padding: 5px; }
|
2
2
|
.rouge-highlight table pre { margin: 0; }
|
3
|
-
.rouge-highlight .c, .rouge-highlight .cd {
|
3
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cpf {
|
4
4
|
color: #5e5d83;
|
5
5
|
font-style: italic;
|
6
6
|
}
|
@@ -32,7 +32,10 @@
|
|
32
32
|
color: #f92672;
|
33
33
|
}
|
34
34
|
.rouge-highlight .ge {
|
35
|
-
|
35
|
+
font-style: italic;
|
36
|
+
}
|
37
|
+
.rouge-highlight .ges {
|
38
|
+
font-weight: bold;
|
36
39
|
font-style: italic;
|
37
40
|
}
|
38
41
|
.rouge-highlight .gr {
|
@@ -143,7 +146,7 @@
|
|
143
146
|
.rouge-highlight .ss {
|
144
147
|
color: #d7d787;
|
145
148
|
}
|
146
|
-
.rouge-highlight .s {
|
149
|
+
.rouge-highlight .s, .rouge-highlight .sa, .rouge-highlight .dl {
|
147
150
|
color: #d7d787;
|
148
151
|
}
|
149
152
|
.rouge-highlight .na {
|
@@ -161,7 +164,7 @@
|
|
161
164
|
color: #a6e22e;
|
162
165
|
font-weight: bold;
|
163
166
|
}
|
164
|
-
.rouge-highlight .nf {
|
167
|
+
.rouge-highlight .nf, .rouge-highlight .fm {
|
165
168
|
color: #a6e22e;
|
166
169
|
font-weight: bold;
|
167
170
|
}
|
@@ -189,7 +192,7 @@
|
|
189
192
|
.rouge-highlight .vi {
|
190
193
|
color: #f8f8f2;
|
191
194
|
}
|
192
|
-
.rouge-highlight .nv {
|
195
|
+
.rouge-highlight .nv, .rouge-highlight .vm {
|
193
196
|
color: #f8f8f2;
|
194
197
|
}
|
195
198
|
.rouge-highlight .w {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.rouge-highlight table td { padding: 5px; }
|
2
2
|
.rouge-highlight table pre { margin: 0; }
|
3
|
-
.rouge-highlight .c, .rouge-highlight .cd {
|
3
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cpf {
|
4
4
|
color: #75715e;
|
5
5
|
font-style: italic;
|
6
6
|
}
|
@@ -34,7 +34,10 @@
|
|
34
34
|
background-color: #493131;
|
35
35
|
}
|
36
36
|
.rouge-highlight .ge {
|
37
|
-
|
37
|
+
font-style: italic;
|
38
|
+
}
|
39
|
+
.rouge-highlight .ges {
|
40
|
+
font-weight: bold;
|
38
41
|
font-style: italic;
|
39
42
|
}
|
40
43
|
.rouge-highlight .gr {
|
@@ -115,6 +118,10 @@
|
|
115
118
|
.rouge-highlight .se {
|
116
119
|
color: #ae81ff;
|
117
120
|
}
|
121
|
+
.rouge-highlight .sa {
|
122
|
+
color: #66d9ef;
|
123
|
+
font-weight: bold;
|
124
|
+
}
|
118
125
|
.rouge-highlight .sb {
|
119
126
|
color: #e6db74;
|
120
127
|
}
|
@@ -145,7 +152,7 @@
|
|
145
152
|
.rouge-highlight .ss {
|
146
153
|
color: #e6db74;
|
147
154
|
}
|
148
|
-
.rouge-highlight .s {
|
155
|
+
.rouge-highlight .s, .rouge-highlight .dl {
|
149
156
|
color: #e6db74;
|
150
157
|
}
|
151
158
|
.rouge-highlight .na {
|
@@ -163,7 +170,7 @@
|
|
163
170
|
color: #a6e22e;
|
164
171
|
font-weight: bold;
|
165
172
|
}
|
166
|
-
.rouge-highlight .nf {
|
173
|
+
.rouge-highlight .nf, .rouge-highlight .fm {
|
167
174
|
color: #a6e22e;
|
168
175
|
font-weight: bold;
|
169
176
|
}
|
@@ -191,7 +198,7 @@
|
|
191
198
|
.rouge-highlight .vi {
|
192
199
|
color: #f8f8f2;
|
193
200
|
}
|
194
|
-
.rouge-highlight .nv {
|
201
|
+
.rouge-highlight .nv, .rouge-highlight .vm {
|
195
202
|
color: #f8f8f2;
|
196
203
|
}
|
197
204
|
.rouge-highlight .w {
|
@@ -12,7 +12,15 @@
|
|
12
12
|
.rouge-highlight .gp {
|
13
13
|
color: #555555;
|
14
14
|
}
|
15
|
+
.rouge-highlight .ge {
|
16
|
+
font-style: italic;
|
17
|
+
}
|
18
|
+
.rouge-highlight .ges {
|
19
|
+
font-weight: bold;
|
20
|
+
font-style: italic;
|
21
|
+
}
|
15
22
|
.rouge-highlight .gs {
|
23
|
+
font-weight: bold;
|
16
24
|
}
|
17
25
|
.rouge-highlight .gu {
|
18
26
|
color: #aaaaaa;
|
@@ -32,7 +40,7 @@
|
|
32
40
|
.rouge-highlight .cs {
|
33
41
|
color: #75715e;
|
34
42
|
}
|
35
|
-
.rouge-highlight .c, .rouge-highlight .cd {
|
43
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cpf {
|
36
44
|
color: #75715e;
|
37
45
|
}
|
38
46
|
.rouge-highlight .err {
|
@@ -50,9 +58,6 @@
|
|
50
58
|
.rouge-highlight .gi {
|
51
59
|
color: #49483e;
|
52
60
|
}
|
53
|
-
.rouge-highlight .ge {
|
54
|
-
color: #49483e;
|
55
|
-
}
|
56
61
|
.rouge-highlight .kc {
|
57
62
|
color: #66d9ef;
|
58
63
|
}
|
@@ -116,7 +121,7 @@
|
|
116
121
|
.rouge-highlight .s1 {
|
117
122
|
color: #e6db74;
|
118
123
|
}
|
119
|
-
.rouge-highlight .s {
|
124
|
+
.rouge-highlight .s, .rouge-highlight .sa, .rouge-highlight .dl {
|
120
125
|
color: #e6db74;
|
121
126
|
}
|
122
127
|
.rouge-highlight .na {
|
@@ -131,41 +136,52 @@
|
|
131
136
|
.rouge-highlight .ne {
|
132
137
|
color: #a6e22e;
|
133
138
|
}
|
134
|
-
.rouge-highlight .nf {
|
139
|
+
.rouge-highlight .nf, .rouge-highlight .fm {
|
135
140
|
color: #a6e22e;
|
136
141
|
}
|
137
142
|
.rouge-highlight .vc {
|
138
143
|
color: #ffffff;
|
144
|
+
background-color: #272822;
|
139
145
|
}
|
140
146
|
.rouge-highlight .nn {
|
141
147
|
color: #ffffff;
|
148
|
+
background-color: #272822;
|
142
149
|
}
|
143
150
|
.rouge-highlight .nl {
|
144
151
|
color: #ffffff;
|
152
|
+
background-color: #272822;
|
145
153
|
}
|
146
154
|
.rouge-highlight .ni {
|
147
155
|
color: #ffffff;
|
156
|
+
background-color: #272822;
|
148
157
|
}
|
149
158
|
.rouge-highlight .bp {
|
150
159
|
color: #ffffff;
|
160
|
+
background-color: #272822;
|
151
161
|
}
|
152
162
|
.rouge-highlight .vg {
|
153
163
|
color: #ffffff;
|
164
|
+
background-color: #272822;
|
154
165
|
}
|
155
166
|
.rouge-highlight .vi {
|
156
167
|
color: #ffffff;
|
168
|
+
background-color: #272822;
|
157
169
|
}
|
158
|
-
.rouge-highlight .nv {
|
170
|
+
.rouge-highlight .nv, .rouge-highlight .vm {
|
159
171
|
color: #ffffff;
|
172
|
+
background-color: #272822;
|
160
173
|
}
|
161
174
|
.rouge-highlight .w {
|
162
175
|
color: #ffffff;
|
176
|
+
background-color: #272822;
|
163
177
|
}
|
164
178
|
.rouge-highlight {
|
165
179
|
color: #ffffff;
|
180
|
+
background-color: #272822;
|
166
181
|
}
|
167
182
|
.rouge-highlight .n, .rouge-highlight .py, .rouge-highlight .nx {
|
168
183
|
color: #ffffff;
|
184
|
+
background-color: #272822;
|
169
185
|
}
|
170
186
|
.rouge-highlight .ow {
|
171
187
|
color: #f92672;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.rouge-highlight table td { padding: 5px; }
|
2
2
|
.rouge-highlight table pre { margin: 0; }
|
3
|
-
.rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1 {
|
3
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1 {
|
4
4
|
color: #888888;
|
5
5
|
}
|
6
6
|
.rouge-highlight .cp {
|
@@ -36,6 +36,10 @@
|
|
36
36
|
.rouge-highlight .ge {
|
37
37
|
font-style: italic;
|
38
38
|
}
|
39
|
+
.rouge-highlight .ges {
|
40
|
+
font-weight: bold;
|
41
|
+
font-style: italic;
|
42
|
+
}
|
39
43
|
.rouge-highlight .gs {
|
40
44
|
font-weight: bold;
|
41
45
|
}
|
@@ -62,14 +66,18 @@
|
|
62
66
|
color: #888888;
|
63
67
|
font-weight: bold;
|
64
68
|
}
|
65
|
-
.rouge-highlight .m, .rouge-highlight .
|
69
|
+
.rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
|
66
70
|
color: #0000dd;
|
67
71
|
font-weight: bold;
|
68
72
|
}
|
69
|
-
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .s1 {
|
73
|
+
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .s1 {
|
70
74
|
color: #dd2200;
|
71
75
|
background-color: #fff0f0;
|
72
76
|
}
|
77
|
+
.rouge-highlight .sa {
|
78
|
+
color: #008800;
|
79
|
+
font-weight: bold;
|
80
|
+
}
|
73
81
|
.rouge-highlight .se {
|
74
82
|
color: #0044dd;
|
75
83
|
background-color: #fff0f0;
|
@@ -110,7 +118,7 @@
|
|
110
118
|
color: #bb0066;
|
111
119
|
font-weight: bold;
|
112
120
|
}
|
113
|
-
.rouge-highlight .nf {
|
121
|
+
.rouge-highlight .nf, .rouge-highlight .fm {
|
114
122
|
color: #0066bb;
|
115
123
|
font-weight: bold;
|
116
124
|
}
|
@@ -129,7 +137,7 @@
|
|
129
137
|
color: #bb0066;
|
130
138
|
font-weight: bold;
|
131
139
|
}
|
132
|
-
.rouge-highlight .nv, .rouge-highlight .vc {
|
140
|
+
.rouge-highlight .nv, .rouge-highlight .vc, .rouge-highlight .vm {
|
133
141
|
color: #336699;
|
134
142
|
}
|
135
143
|
.rouge-highlight .vg {
|