snibbets 2.0.14 → 2.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md.orig +20 -0
- data/Gemfile.lock +1 -1
- data/README.md +10 -2
- data/lib/breeze-dark.theme +174 -0
- data/lib/monokai.theme +394 -0
- data/lib/nord.theme +181 -0
- data/lib/snibbets/config.rb +1 -0
- data/lib/snibbets/highlight.rb +20 -11
- data/lib/snibbets/lexers.rb +2 -1
- data/lib/snibbets/version.rb +1 -1
- data/lib/solarized-dark.theme +192 -0
- data/lib/solarized-light.theme +196 -0
- data/snibbets.gemspec +1 -1
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f4064d03cc2613a15f154682bd809dbcced9923cc3ce0577f17e2ae5ca1fa8f
|
4
|
+
data.tar.gz: 818f92d5da7a115f280a701f71fe176ad3b3e119435e252c146ec084803521a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cc558d53cadcf0a09bec9e22f0f67386dcfb786945df71b64ee282397f433e19bd990f20d668535768cd2669401a1f81a90cf806be0f19a6637afb67cba3643
|
7
|
+
data.tar.gz: 81a674e80b35ce53dc7fdb0f5aaf5399ed0dae920f0b0c415b4dedd4d1a15c69b1ead39091f3784ffa61d44acd8244f686be511c3ca8f463bb1f34997f7f36a6
|
data/CHANGELOG.md.orig
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
### 2.0.16
|
2
|
+
|
3
|
+
2023-04-15 22:15
|
4
|
+
|
5
|
+
#### FIXED
|
6
|
+
|
7
|
+
- Remove debugging output
|
8
|
+
|
9
|
+
### 2.0.15
|
10
|
+
|
11
|
+
2023-04-15 22:11
|
12
|
+
|
13
|
+
#### NEW
|
14
|
+
|
15
|
+
- Additional themes for skylighting: nord, monokai, solarized-light/dark
|
16
|
+
|
17
|
+
#### FIXED
|
18
|
+
|
19
|
+
- Bad path to highlighter themes for skylighting
|
20
|
+
|
1
21
|
### 2.0.14
|
2
22
|
|
3
23
|
2023-04-15 21:21
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -108,7 +108,15 @@ The `copy` setting determines whether the output is copied to the clipboard in a
|
|
108
108
|
|
109
109
|
The `editor` setting is used to open the config file, and to open snippets for editing when using the `--edit` flag. This setting can be any command line utility (`code`, `subl`, `vim`, `nano`, etc.), or on macOS it can be an application name (`BBEdit`, `VS Code`, etc.) or a bundle identifier (`com.sublimetext.4`, `com.microsoft.VSCode`, etc.). If no editor is set, then the file will be opened by whatever the system default is (using `open` on macOS, `start` on Windows, or `xdg-open`on Linux).
|
110
110
|
|
111
|
-
The `highlight` key turns on syntax highlighting. This requires that either `pygmentize` or `skyligting` is available on your system (both available via package managers like Homebrew). This feature is still in development and results may be mixed.
|
111
|
+
The `highlight` key turns on syntax highlighting. This requires that either `pygmentize` or `skyligting` is available on your system (both available via package managers like Homebrew). This feature is still in development and results may be mixed. You can also set `highlighter` to `pygments` or `skylight` to force using one highlighter over the other.
|
112
|
+
|
113
|
+
You can also define a color theme with `highlight_theme`. If you're using Pygments, run `pygmentize -L styles` to see available options. If you're using Skylighting, the only currently-available options are:
|
114
|
+
|
115
|
+
- breeze-dark
|
116
|
+
- monokai
|
117
|
+
- nord
|
118
|
+
- solarized-dark
|
119
|
+
- solarized-light
|
112
120
|
|
113
121
|
The `include_blockquotes` setting determines whether blockquotes are included in the output. By default, Snibbets removes everything other than code blocks (indented or fenced) from the output it displays. But if you want to include a note that you'll see on the command line, you can put it in a block quote by preceding each line you want to preserve with a right angle bracket (`>`).
|
114
122
|
|
@@ -121,7 +129,7 @@ The `name_only` key will permanently set Snibbets to only search for snippets by
|
|
121
129
|
### Usage
|
122
130
|
|
123
131
|
```
|
124
|
-
Snibbets v2.0.
|
132
|
+
Snibbets v2.0.16
|
125
133
|
|
126
134
|
Usage: snibbets [options] query
|
127
135
|
-a, --all If a file contains multiple snippets, output all of them (no menu)
|
@@ -0,0 +1,174 @@
|
|
1
|
+
{
|
2
|
+
"metadata" : {
|
3
|
+
"revision" : 2,
|
4
|
+
"name" : "Breeze Dark"
|
5
|
+
},
|
6
|
+
"text-styles": {
|
7
|
+
"Normal" : {
|
8
|
+
"text-color" : "#cfcfc2",
|
9
|
+
"selected-text-color" : "#cfcfc2",
|
10
|
+
"bold" : false,
|
11
|
+
"italic" : false,
|
12
|
+
"underline" : false,
|
13
|
+
"strike-through" : false
|
14
|
+
},
|
15
|
+
"Keyword" : {
|
16
|
+
"text-color" : "#cfcfc2",
|
17
|
+
"selected-text-color" : "#cfcfc2",
|
18
|
+
"bold" : true
|
19
|
+
},
|
20
|
+
"Function" : {
|
21
|
+
"text-color" : "#8e44ad",
|
22
|
+
"selected-text-color" : "#af81ff"
|
23
|
+
},
|
24
|
+
"Variable" : {
|
25
|
+
"text-color" : "#27aeae",
|
26
|
+
"selected-text-color" : "#27aeae"
|
27
|
+
},
|
28
|
+
"ControlFlow" : {
|
29
|
+
"text-color" : "#fdbc4b",
|
30
|
+
"selected-text-color" : "#fdbc4b",
|
31
|
+
"bold" : true
|
32
|
+
},
|
33
|
+
"Operator" : {
|
34
|
+
"text-color" : "#cfcfc2",
|
35
|
+
"selected-text-color" : "#cfcfc2"
|
36
|
+
},
|
37
|
+
"BuiltIn" : {
|
38
|
+
"text-color" : "#7f8c8d",
|
39
|
+
"selected-text-color" : "#bdc3c7"
|
40
|
+
},
|
41
|
+
"Extension" : {
|
42
|
+
"text-color" : "#0099ff",
|
43
|
+
"selected-text-color" : "#bdc3c7",
|
44
|
+
"bold" : true
|
45
|
+
},
|
46
|
+
"Preprocessor" : {
|
47
|
+
"text-color" : "#27ae60",
|
48
|
+
"selected-text-color" : "#27ae60"
|
49
|
+
},
|
50
|
+
"Attribute" : {
|
51
|
+
"text-color" : "#2980b9",
|
52
|
+
"selected-text-color" : "#fdbc4b"
|
53
|
+
},
|
54
|
+
"Char" : {
|
55
|
+
"text-color" : "#3daee9",
|
56
|
+
"selected-text-color" : "#3daee9"
|
57
|
+
},
|
58
|
+
"SpecialChar" : {
|
59
|
+
"text-color" : "#3daee9",
|
60
|
+
"selected-text-color" : "#3daee9"
|
61
|
+
},
|
62
|
+
"String" : {
|
63
|
+
"text-color" : "#f44f4f",
|
64
|
+
"selected-text-color" : "#f44f4f"
|
65
|
+
},
|
66
|
+
"VerbatimString" : {
|
67
|
+
"text-color" : "#da4453",
|
68
|
+
"selected-text-color" : "#da4453"
|
69
|
+
},
|
70
|
+
"SpecialString" : {
|
71
|
+
"text-color" : "#da4453",
|
72
|
+
"selected-text-color" : "#da4453"
|
73
|
+
},
|
74
|
+
"Import" : {
|
75
|
+
"text-color" : "#27ae60",
|
76
|
+
"selected-text-color" : "#27ae60"
|
77
|
+
},
|
78
|
+
"DataType" : {
|
79
|
+
"text-color" : "#2980b9",
|
80
|
+
"selected-text-color" : "#fdbc4b"
|
81
|
+
},
|
82
|
+
"DecVal" : {
|
83
|
+
"text-color" : "#f67400",
|
84
|
+
"selected-text-color" : "#f67400"
|
85
|
+
},
|
86
|
+
"BaseN" : {
|
87
|
+
"text-color" : "#f67400",
|
88
|
+
"selected-text-color" : "#f67400"
|
89
|
+
},
|
90
|
+
"Float" : {
|
91
|
+
"text-color" : "#f67400",
|
92
|
+
"selected-text-color" : "#f67400"
|
93
|
+
},
|
94
|
+
"Constant" : {
|
95
|
+
"text-color" : "#27aeae",
|
96
|
+
"selected-text-color" : "#27aeae",
|
97
|
+
"bold" : true
|
98
|
+
},
|
99
|
+
"Comment" : {
|
100
|
+
"text-color" : "#7a7c7d",
|
101
|
+
"selected-text-color" : "#808080"
|
102
|
+
},
|
103
|
+
"Documentation" : {
|
104
|
+
"text-color" : "#a43340",
|
105
|
+
"selected-text-color" : "#da4453"
|
106
|
+
},
|
107
|
+
"Annotation" : {
|
108
|
+
"text-color" : "#3f8058",
|
109
|
+
"selected-text-color" : "#54aa75"
|
110
|
+
},
|
111
|
+
"CommentVar" : {
|
112
|
+
"text-color" : "#7f8c8d",
|
113
|
+
"selected-text-color" : "#94a3a4"
|
114
|
+
},
|
115
|
+
"RegionMarker" : {
|
116
|
+
"text-color" : "#2980b9",
|
117
|
+
"selected-text-color" : "#3daee9",
|
118
|
+
"background-color" : "#153042"
|
119
|
+
},
|
120
|
+
"Information" : {
|
121
|
+
"text-color" : "#c45b00",
|
122
|
+
"selected-text-color" : "#e46700"
|
123
|
+
},
|
124
|
+
"Warning" : {
|
125
|
+
"text-color" : "#da4453",
|
126
|
+
"selected-text-color" : "#da4453"
|
127
|
+
},
|
128
|
+
"Alert" : {
|
129
|
+
"text-color" : "#95da4c",
|
130
|
+
"selected-text-color" : "#95da4c",
|
131
|
+
"background-color" : "#4d1f24",
|
132
|
+
"bold" : true
|
133
|
+
},
|
134
|
+
"Error" : {
|
135
|
+
"text-color" : "#da4453",
|
136
|
+
"selected-text-color" : "#da4453",
|
137
|
+
"underline" : true
|
138
|
+
},
|
139
|
+
"Others" : {
|
140
|
+
"text-color" : "#27ae60",
|
141
|
+
"selected-text-color" : "#27ae60"
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"editor-colors": {
|
145
|
+
"background-color" : "#232629",
|
146
|
+
"code-folding" : "#224e65",
|
147
|
+
"bracket-matching" : "#8e44ad",
|
148
|
+
"current-line" : "#2A2E32",
|
149
|
+
"icon-border" : "#31363b",
|
150
|
+
"indentation-line" : "#3a3f44",
|
151
|
+
"line-numbers" : "#7a7c7d",
|
152
|
+
"current-line-number" : "#a5a6a8",
|
153
|
+
"mark-bookmark" : "#0404bf",
|
154
|
+
"mark-breakpoint-active" : "#8b0607",
|
155
|
+
"mark-breakpoint-reached" : "#6d6e07",
|
156
|
+
"mark-breakpoint-disabled" : "#820683",
|
157
|
+
"mark-execution" : "#4d4e50",
|
158
|
+
"mark-warning" : "#f67400",
|
159
|
+
"mark-error" : "#da4453",
|
160
|
+
"modified-lines" : "#c04900",
|
161
|
+
"replace-highlight" : "#808021",
|
162
|
+
"saved-lines" : "#1c8042",
|
163
|
+
"search-highlight" : "#218058",
|
164
|
+
"selection" : "#2d5c76",
|
165
|
+
"separator" : "#7a7c7d",
|
166
|
+
"spell-checking" : "#c0392b",
|
167
|
+
"tab-marker" : "#4d4d4d",
|
168
|
+
"template-background" : "#31363b",
|
169
|
+
"template-placeholder" : "#123723",
|
170
|
+
"template-focused-placeholder" : "#123723",
|
171
|
+
"template-read-only-placeholder" : "#4d1f24",
|
172
|
+
"word-wrap-marker" : "#3a3f44"
|
173
|
+
}
|
174
|
+
}
|
data/lib/monokai.theme
ADDED
@@ -0,0 +1,394 @@
|
|
1
|
+
{
|
2
|
+
"custom-styles": {
|
3
|
+
"C": {
|
4
|
+
"Prep. Lib": {
|
5
|
+
"selected-text-color": "#e6db74",
|
6
|
+
"text-color": "#e6db74"
|
7
|
+
}
|
8
|
+
},
|
9
|
+
"C++": {
|
10
|
+
"Qt Classes": {
|
11
|
+
"bold": false,
|
12
|
+
"selected-text-color": "#66d9ef",
|
13
|
+
"text-color": "#66d9ef"
|
14
|
+
},
|
15
|
+
"Qt Macros": {
|
16
|
+
"bold": false,
|
17
|
+
"selected-text-color": "#f92672",
|
18
|
+
"text-color": "#f92672"
|
19
|
+
},
|
20
|
+
"Qt Types": {
|
21
|
+
"bold": false,
|
22
|
+
"selected-text-color": "#66D9EF",
|
23
|
+
"text-color": "#66D9EF"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"CMake": {
|
27
|
+
"Builtin Variable": {
|
28
|
+
"selected-text-color": "#f8f8f2",
|
29
|
+
"text-color": "#f8f8f2"
|
30
|
+
},
|
31
|
+
"False Special Arg": {
|
32
|
+
"selected-text-color": "#e03232",
|
33
|
+
"text-color": "#e03232"
|
34
|
+
},
|
35
|
+
"True Special Arg": {
|
36
|
+
"selected-text-color": "#38bd38",
|
37
|
+
"text-color": "#38bd38"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"Doxygen": {
|
41
|
+
"Tags": {
|
42
|
+
"bold": false,
|
43
|
+
"selected-text-color": "#52afbf",
|
44
|
+
"text-color": "#52afbf"
|
45
|
+
},
|
46
|
+
"Word": {
|
47
|
+
"bold": false,
|
48
|
+
"selected-text-color": "#7ba822",
|
49
|
+
"text-color": "#7ba822",
|
50
|
+
"underline": true
|
51
|
+
}
|
52
|
+
},
|
53
|
+
"Diff": {
|
54
|
+
"Added line": {
|
55
|
+
"selected-text-color": "#a6e22e",
|
56
|
+
"text-color": "#a6e22e"
|
57
|
+
},
|
58
|
+
"Changed line (new)": {
|
59
|
+
"selected-text-color": "#a6e22e",
|
60
|
+
"text-color": "#a6e22e"
|
61
|
+
},
|
62
|
+
"Changed line (old)": {
|
63
|
+
"selected-text-color": "#f92672",
|
64
|
+
"text-color": "#f92672"
|
65
|
+
},
|
66
|
+
"Removed line": {
|
67
|
+
"selected-text-color": "#f92672",
|
68
|
+
"text-color": "#f92672"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
"Go": {
|
72
|
+
"Builtin Function": {
|
73
|
+
"selected-text-color": "#a6e22e",
|
74
|
+
"text-color": "#a6e22e"
|
75
|
+
},
|
76
|
+
"Predeclared Identifier": {
|
77
|
+
"selected-text-color": "#ae81ff",
|
78
|
+
"text-color": "#ae81ff"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
"ISO C++": {
|
82
|
+
"Attribute": {
|
83
|
+
"selected-text-color": "#f8f8f2",
|
84
|
+
"text-color": "#f8f8f2"
|
85
|
+
},
|
86
|
+
"Boost Stuff": {
|
87
|
+
"bold": false
|
88
|
+
},
|
89
|
+
"Prep. Lib": {
|
90
|
+
"selected-text-color": "#e6db74",
|
91
|
+
"text-color": "#e6db74"
|
92
|
+
},
|
93
|
+
"Standard Attribute": {
|
94
|
+
"selected-text-color": "#f8f8f2",
|
95
|
+
"text-color": "#f8f8f2"
|
96
|
+
},
|
97
|
+
"Standard Macros": {
|
98
|
+
"selected-text-color": "#f92672",
|
99
|
+
"text-color": "#f92672"
|
100
|
+
},
|
101
|
+
"Standard Suffix": {
|
102
|
+
"selected-text-color": "#f92672",
|
103
|
+
"text-color": "#f92672"
|
104
|
+
},
|
105
|
+
"UDL Numeric Suffix": {
|
106
|
+
"selected-text-color": "#f92672",
|
107
|
+
"text-color": "#f92672"
|
108
|
+
},
|
109
|
+
"UDL String Suffix": {
|
110
|
+
"selected-text-color": "#f92672",
|
111
|
+
"text-color": "#f92672"
|
112
|
+
}
|
113
|
+
},
|
114
|
+
"JSON": {
|
115
|
+
"Style_String_Key": {
|
116
|
+
"italic": false,
|
117
|
+
"selected-text-color": "#f92672",
|
118
|
+
"text-color": "#f92672"
|
119
|
+
}
|
120
|
+
},
|
121
|
+
"JavaScript": {
|
122
|
+
"Object Member": {
|
123
|
+
"selected-text-color": "#f8f8f2",
|
124
|
+
"text-color": "#f8f8f2"
|
125
|
+
},
|
126
|
+
"Substitution": {
|
127
|
+
"selected-text-color": "#f92672",
|
128
|
+
"text-color": "#f92672"
|
129
|
+
}
|
130
|
+
},
|
131
|
+
"JavaScript React (JSX)": {
|
132
|
+
"Component Tag": {
|
133
|
+
"bold": false,
|
134
|
+
"selected-text-color": "#66d9ef",
|
135
|
+
"text-color": "#66d9ef"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"Makefile": {
|
139
|
+
"FuncParam": {
|
140
|
+
"selected-text-color": "#fd971f",
|
141
|
+
"text-color": "#fd971f"
|
142
|
+
},
|
143
|
+
"Target": {
|
144
|
+
"selected-text-color": "#a6e22e",
|
145
|
+
"text-color": "#a6e22e"
|
146
|
+
},
|
147
|
+
"Variable": {
|
148
|
+
"italic": false,
|
149
|
+
"selected-text-color": "#f8f8f2",
|
150
|
+
"text-color": "#f8f8f2"
|
151
|
+
}
|
152
|
+
},
|
153
|
+
"Markdown": {
|
154
|
+
"Emphasis Text": {
|
155
|
+
"selected-text-color": "#66D9EF",
|
156
|
+
"text-color": "#66D9EF"
|
157
|
+
},
|
158
|
+
"Reference-Link ID": {
|
159
|
+
"selected-text-color": "#ae81ff",
|
160
|
+
"text-color": "#ae81ff"
|
161
|
+
},
|
162
|
+
"Reference-Link Name": {
|
163
|
+
"selected-text-color": "#ae81ff",
|
164
|
+
"text-color": "#ae81ff"
|
165
|
+
},
|
166
|
+
"Reference-Link Target": {
|
167
|
+
"selected-text-color": "#ae81ff",
|
168
|
+
"text-color": "#ae81ff"
|
169
|
+
},
|
170
|
+
"Strong Text": {
|
171
|
+
"selected-text-color": "#66d9ef",
|
172
|
+
"text-color": "#66d9ef"
|
173
|
+
}
|
174
|
+
},
|
175
|
+
"Python": {
|
176
|
+
"Import": {
|
177
|
+
"selected-text-color": "#f92672",
|
178
|
+
"text-color": "#f92672"
|
179
|
+
}
|
180
|
+
},
|
181
|
+
"Rust": {
|
182
|
+
"Definition": {
|
183
|
+
"selected-text-color": "#a6e22e",
|
184
|
+
"text-color": "#a6e22e"
|
185
|
+
},
|
186
|
+
"Lifetime": {
|
187
|
+
"selected-text-color": "#f92672",
|
188
|
+
"text-color": "#f92672"
|
189
|
+
},
|
190
|
+
"Macro": {
|
191
|
+
"selected-text-color": "#a6e22e",
|
192
|
+
"text-color": "#a6e22e"
|
193
|
+
},
|
194
|
+
"Self": {
|
195
|
+
"selected-text-color": "#fd971f",
|
196
|
+
"text-color": "#fd971f"
|
197
|
+
}
|
198
|
+
},
|
199
|
+
"TypeScript": {
|
200
|
+
"Function (Built-in)": {
|
201
|
+
"selected-text-color": "#a6e22e",
|
202
|
+
"text-color": "#a6e22e"
|
203
|
+
},
|
204
|
+
"Object Member": {
|
205
|
+
"selected-text-color": "#f8f8f2",
|
206
|
+
"text-color": "#f8f8f2"
|
207
|
+
},
|
208
|
+
"Substitution": {
|
209
|
+
"selected-text-color": "#f92672",
|
210
|
+
"text-color": "#f92672"
|
211
|
+
}
|
212
|
+
},
|
213
|
+
"TypeScript React (TSX)": {
|
214
|
+
"Component Tag": {
|
215
|
+
"bold": false,
|
216
|
+
"selected-text-color": "#66d9ef",
|
217
|
+
"text-color": "#66d9ef"
|
218
|
+
},
|
219
|
+
"Substitution": {
|
220
|
+
"selected-text-color": "#f92672",
|
221
|
+
"text-color": "#f92672"
|
222
|
+
}
|
223
|
+
}
|
224
|
+
},
|
225
|
+
"editor-colors": {
|
226
|
+
"BackgroundColor": "#272822",
|
227
|
+
"BracketMatching": "#5b5a4a",
|
228
|
+
"CodeFolding": "#3a3b32",
|
229
|
+
"CurrentLine": "#3e3d32",
|
230
|
+
"CurrentLineNumber": "#d1d931",
|
231
|
+
"IconBorder": "#272822",
|
232
|
+
"IndentationLine": "#6272a4",
|
233
|
+
"LineNumbers": "#909194",
|
234
|
+
"MarkBookmark": "#66D9EF",
|
235
|
+
"MarkBreakpointActive": "#ff5555",
|
236
|
+
"MarkBreakpointDisabled": "#bd93f9",
|
237
|
+
"MarkBreakpointReached": "#f1fa8c",
|
238
|
+
"MarkError": "#ff5555",
|
239
|
+
"MarkExecution": "#44475a",
|
240
|
+
"MarkWarning": "#ffb86c",
|
241
|
+
"ModifiedLines": "#ff473d",
|
242
|
+
"ReplaceHighlight": "#735d16",
|
243
|
+
"SavedLines": "#20e852",
|
244
|
+
"SearchHighlight": "#245676",
|
245
|
+
"Separator": "#45474e",
|
246
|
+
"SpellChecking": "#ff5555",
|
247
|
+
"TabMarker": "#6272a4",
|
248
|
+
"TemplateBackground": "#23241e",
|
249
|
+
"TemplateFocusedPlaceholder": "#22231d",
|
250
|
+
"TemplatePlaceholder": "#22231d",
|
251
|
+
"TemplateReadOnlyPlaceholder": "#262721",
|
252
|
+
"TextSelection": "#3f413e",
|
253
|
+
"WordWrapMarker": "#282a36"
|
254
|
+
},
|
255
|
+
"metadata": {
|
256
|
+
"copyright": [
|
257
|
+
"SPDX-FileCopyrightText: 2006 Wimer Hazenberg",
|
258
|
+
"SPDX-FileCopyrightText: 2020 Waqar Ahmed <waqar.17a@gmail.com>"
|
259
|
+
],
|
260
|
+
"license": "SPDX-License-Identifier: MIT",
|
261
|
+
"name": "Monokai",
|
262
|
+
"revision": 6
|
263
|
+
},
|
264
|
+
"text-styles": {
|
265
|
+
"Alert": {
|
266
|
+
"bold": true,
|
267
|
+
"selected-text-color": "#ff5555",
|
268
|
+
"text-color": "#ff5555"
|
269
|
+
},
|
270
|
+
"Annotation": {
|
271
|
+
"selected-text-color": "#75715e",
|
272
|
+
"text-color": "#75715e"
|
273
|
+
},
|
274
|
+
"Attribute": {
|
275
|
+
"selected-text-color": "#f92672",
|
276
|
+
"text-color": "#f92672"
|
277
|
+
},
|
278
|
+
"BaseN": {
|
279
|
+
"selected-text-color": "#ae81ff",
|
280
|
+
"text-color": "#ae81ff"
|
281
|
+
},
|
282
|
+
"BuiltIn": {
|
283
|
+
"selected-text-color": "#66D9EF",
|
284
|
+
"text-color": "#66D9EF"
|
285
|
+
},
|
286
|
+
"Char": {
|
287
|
+
"selected-text-color": "#e6db74",
|
288
|
+
"text-color": "#e6db74"
|
289
|
+
},
|
290
|
+
"Comment": {
|
291
|
+
"selected-text-color": "#75715e",
|
292
|
+
"text-color": "#75715e"
|
293
|
+
},
|
294
|
+
"CommentVar": {
|
295
|
+
"selected-text-color": "#75715e",
|
296
|
+
"text-color": "#75715e"
|
297
|
+
},
|
298
|
+
"Constant": {
|
299
|
+
"selected-text-color": "#ae81ff",
|
300
|
+
"text-color": "#ae81ff"
|
301
|
+
},
|
302
|
+
"ControlFlow": {
|
303
|
+
"selected-text-color": "#f92672",
|
304
|
+
"text-color": "#f92672"
|
305
|
+
},
|
306
|
+
"DataType": {
|
307
|
+
"italic": true,
|
308
|
+
"selected-text-color": "#66d9ef",
|
309
|
+
"text-color": "#66d9ef"
|
310
|
+
},
|
311
|
+
"DecVal": {
|
312
|
+
"selected-text-color": "#ae81ff",
|
313
|
+
"text-color": "#ae81ff"
|
314
|
+
},
|
315
|
+
"Documentation": {
|
316
|
+
"selected-text-color": "#75715e",
|
317
|
+
"text-color": "#75715e"
|
318
|
+
},
|
319
|
+
"Error": {
|
320
|
+
"selected-text-color": "#ff5555",
|
321
|
+
"text-color": "#ff5555",
|
322
|
+
"underline": true
|
323
|
+
},
|
324
|
+
"Extension": {
|
325
|
+
"bold": true,
|
326
|
+
"selected-text-color": "#a6e22e",
|
327
|
+
"text-color": "#a6e22e"
|
328
|
+
},
|
329
|
+
"Float": {
|
330
|
+
"selected-text-color": "#ae81ff",
|
331
|
+
"text-color": "#ae81ff"
|
332
|
+
},
|
333
|
+
"Function": {
|
334
|
+
"selected-text-color": "#a6e22e",
|
335
|
+
"text-color": "#a6e22e"
|
336
|
+
},
|
337
|
+
"Import": {
|
338
|
+
"selected-text-color": "#f92672",
|
339
|
+
"text-color": "#f92672"
|
340
|
+
},
|
341
|
+
"Information": {
|
342
|
+
"selected-text-color": "#f1fa8c",
|
343
|
+
"text-color": "#f1fa8c"
|
344
|
+
},
|
345
|
+
"Keyword": {
|
346
|
+
"selected-text-color": "#f92672",
|
347
|
+
"text-color": "#f92672"
|
348
|
+
},
|
349
|
+
"Normal": {
|
350
|
+
"selected-text-color": "#f8f8f2",
|
351
|
+
"text-color": "#f8f8f2"
|
352
|
+
},
|
353
|
+
"Operator": {
|
354
|
+
"selected-text-color": "#f8f8f2",
|
355
|
+
"text-color": "#f8f8f2"
|
356
|
+
},
|
357
|
+
"Others": {
|
358
|
+
"selected-text-color": "#a6e22e",
|
359
|
+
"text-color": "#a6e22e"
|
360
|
+
},
|
361
|
+
"Preprocessor": {
|
362
|
+
"selected-text-color": "#f92672",
|
363
|
+
"text-color": "#f92672"
|
364
|
+
},
|
365
|
+
"RegionMarker": {
|
366
|
+
"selected-text-color": "#75715e",
|
367
|
+
"text-color": "#75715e"
|
368
|
+
},
|
369
|
+
"SpecialChar": {
|
370
|
+
"selected-text-color": "#ae81ff",
|
371
|
+
"text-color": "#ae81ff"
|
372
|
+
},
|
373
|
+
"SpecialString": {
|
374
|
+
"selected-text-color": "#e6db74",
|
375
|
+
"text-color": "#e6db74"
|
376
|
+
},
|
377
|
+
"String": {
|
378
|
+
"selected-text-color": "#e6db74",
|
379
|
+
"text-color": "#e6db74"
|
380
|
+
},
|
381
|
+
"Variable": {
|
382
|
+
"selected-text-color": "#f8f8f2",
|
383
|
+
"text-color": "#f8f8f2"
|
384
|
+
},
|
385
|
+
"VerbatimString": {
|
386
|
+
"selected-text-color": "#d8c72c",
|
387
|
+
"text-color": "#d8c72c"
|
388
|
+
},
|
389
|
+
"Warning": {
|
390
|
+
"selected-text-color": "#ff5555",
|
391
|
+
"text-color": "#ff5555"
|
392
|
+
}
|
393
|
+
}
|
394
|
+
}
|
data/lib/nord.theme
ADDED
@@ -0,0 +1,181 @@
|
|
1
|
+
{
|
2
|
+
"_comments": [
|
3
|
+
"Last update: Jul 28, 2020 (revision 3)",
|
4
|
+
"This theme has been adapted from: https://www.nordtheme.com"
|
5
|
+
],
|
6
|
+
"metadata": {
|
7
|
+
"copyright": [
|
8
|
+
"SPDX-FileCopyrightText: 2016 Arctic Ice Studio <development@arcticicestudio.com>",
|
9
|
+
"SPDX-FileCopyrightText: 2016 Sven Greb <development@svengreb.de>",
|
10
|
+
"SPDX-FileCopyrightText: 2020 Nibaldo González <nibgonz@gmail.com>"
|
11
|
+
],
|
12
|
+
"license": "SPDX-License-Identifier: MIT",
|
13
|
+
"name": "Nord",
|
14
|
+
"revision": 3
|
15
|
+
},
|
16
|
+
"editor-colors": {
|
17
|
+
"BackgroundColor": "#2e3440",
|
18
|
+
"BracketMatching": "#4c566a",
|
19
|
+
"CodeFolding": "#434c5e",
|
20
|
+
"CurrentLine": "#3b4252",
|
21
|
+
"CurrentLineNumber": "#616e88",
|
22
|
+
"IconBorder": "#2e3440",
|
23
|
+
"IndentationLine": "#434c5e",
|
24
|
+
"LineNumbers": "#4c566a",
|
25
|
+
"MarkBookmark": "#55749a",
|
26
|
+
"MarkBreakpointActive": "#79aab9",
|
27
|
+
"MarkBreakpointDisabled": "#b48ead",
|
28
|
+
"MarkBreakpointReached": "#91a97e",
|
29
|
+
"MarkError": "#a95862",
|
30
|
+
"MarkExecution": "#4c566a",
|
31
|
+
"MarkWarning": "#d0b47d",
|
32
|
+
"ModifiedLines": "#ebcb8b",
|
33
|
+
"ReplaceHighlight": "#8e6057",
|
34
|
+
"SavedLines": "#a3be8c",
|
35
|
+
"SearchHighlight": "#5f8491",
|
36
|
+
"Separator": "#3b4252",
|
37
|
+
"SpellChecking": "#bf616a",
|
38
|
+
"TabMarker": "#3e4656",
|
39
|
+
"TemplateBackground": "#3b4252",
|
40
|
+
"TemplateFocusedPlaceholder": "#81a1c1",
|
41
|
+
"TemplatePlaceholder": "#5e81ac",
|
42
|
+
"TemplateReadOnlyPlaceholder": "#4c566a",
|
43
|
+
"TextSelection": "#4c566a",
|
44
|
+
"WordWrapMarker": "#3f4859"
|
45
|
+
},
|
46
|
+
"text-styles": {
|
47
|
+
"Alert": {
|
48
|
+
"background-color": "#3b4252",
|
49
|
+
"bold": true,
|
50
|
+
"selected-text-color": "#bf616a",
|
51
|
+
"text-color": "#bf616a"
|
52
|
+
},
|
53
|
+
"Annotation": {
|
54
|
+
"selected-text-color": "#d08770",
|
55
|
+
"text-color": "#d08770"
|
56
|
+
},
|
57
|
+
"Attribute": {
|
58
|
+
"selected-text-color": "#8fbcbb",
|
59
|
+
"text-color": "#8fbcbb"
|
60
|
+
},
|
61
|
+
"BaseN": {
|
62
|
+
"selected-text-color": "#b48ead",
|
63
|
+
"text-color": "#b48ead"
|
64
|
+
},
|
65
|
+
"BuiltIn": {
|
66
|
+
"italic": true,
|
67
|
+
"selected-text-color": "#88c0d0",
|
68
|
+
"text-color": "#88c0d0"
|
69
|
+
},
|
70
|
+
"Char": {
|
71
|
+
"selected-text-color": "#ebcb8b",
|
72
|
+
"text-color": "#ebcb8b"
|
73
|
+
},
|
74
|
+
"Comment": {
|
75
|
+
"selected-text-color": "#616e88",
|
76
|
+
"text-color": "#616e88"
|
77
|
+
},
|
78
|
+
"CommentVar": {
|
79
|
+
"selected-text-color": "#e5e9f0",
|
80
|
+
"text-color": "#e5e9f0"
|
81
|
+
},
|
82
|
+
"Constant": {
|
83
|
+
"bold": true,
|
84
|
+
"selected-text-color": "#eceff4",
|
85
|
+
"text-color": "#eceff4"
|
86
|
+
},
|
87
|
+
"ControlFlow": {
|
88
|
+
"bold": true,
|
89
|
+
"selected-text-color": "#81a1c1",
|
90
|
+
"text-color": "#81a1c1"
|
91
|
+
},
|
92
|
+
"DataType": {
|
93
|
+
"selected-text-color": "#81a1c1",
|
94
|
+
"text-color": "#81a1c1"
|
95
|
+
},
|
96
|
+
"DecVal": {
|
97
|
+
"selected-text-color": "#b48ead",
|
98
|
+
"text-color": "#b48ead"
|
99
|
+
},
|
100
|
+
"Documentation": {
|
101
|
+
"selected-text-color": "#5e81ac",
|
102
|
+
"text-color": "#5e81ac"
|
103
|
+
},
|
104
|
+
"Error": {
|
105
|
+
"selected-text-color": "#bf616a",
|
106
|
+
"text-color": "#bf616a",
|
107
|
+
"underline": true
|
108
|
+
},
|
109
|
+
"Extension": {
|
110
|
+
"bold": true,
|
111
|
+
"selected-text-color": "#8fbcbb",
|
112
|
+
"text-color": "#8fbcbb"
|
113
|
+
},
|
114
|
+
"Float": {
|
115
|
+
"selected-text-color": "#b48ead",
|
116
|
+
"text-color": "#b48ead"
|
117
|
+
},
|
118
|
+
"Function": {
|
119
|
+
"selected-text-color": "#88c0d0",
|
120
|
+
"text-color": "#88c0d0"
|
121
|
+
},
|
122
|
+
"Import": {
|
123
|
+
"selected-text-color": "#a3be8c",
|
124
|
+
"text-color": "#a3be8c"
|
125
|
+
},
|
126
|
+
"Information": {
|
127
|
+
"selected-text-color": "#ebcb8b",
|
128
|
+
"text-color": "#ebcb8b"
|
129
|
+
},
|
130
|
+
"Keyword": {
|
131
|
+
"bold": true,
|
132
|
+
"selected-text-color": "#81a1c1",
|
133
|
+
"text-color": "#81a1c1"
|
134
|
+
},
|
135
|
+
"Normal": {
|
136
|
+
"selected-text-color": "#d8dee9",
|
137
|
+
"text-color": "#d8dee9"
|
138
|
+
},
|
139
|
+
"Operator": {
|
140
|
+
"selected-text-color": "#81a1c1",
|
141
|
+
"text-color": "#81a1c1"
|
142
|
+
},
|
143
|
+
"Others": {
|
144
|
+
"selected-text-color": "#8fbcbb",
|
145
|
+
"text-color": "#8fbcbb"
|
146
|
+
},
|
147
|
+
"Preprocessor": {
|
148
|
+
"selected-text-color": "#5e81ac",
|
149
|
+
"text-color": "#5e81ac"
|
150
|
+
},
|
151
|
+
"RegionMarker": {
|
152
|
+
"background-color": "#3b4252",
|
153
|
+
"selected-text-color": "#88c0d0",
|
154
|
+
"text-color": "#88c0d0"
|
155
|
+
},
|
156
|
+
"SpecialChar": {
|
157
|
+
"selected-text-color": "#ebcb8b",
|
158
|
+
"text-color": "#ebcb8b"
|
159
|
+
},
|
160
|
+
"SpecialString": {
|
161
|
+
"selected-text-color": "#d08770",
|
162
|
+
"text-color": "#d08770"
|
163
|
+
},
|
164
|
+
"String": {
|
165
|
+
"selected-text-color": "#a3be8c",
|
166
|
+
"text-color": "#a3be8c"
|
167
|
+
},
|
168
|
+
"Variable": {
|
169
|
+
"selected-text-color": "#5e81ac",
|
170
|
+
"text-color": "#5e81ac"
|
171
|
+
},
|
172
|
+
"VerbatimString": {
|
173
|
+
"selected-text-color": "#8dae70",
|
174
|
+
"text-color": "#8dae70"
|
175
|
+
},
|
176
|
+
"Warning": {
|
177
|
+
"selected-text-color": "#bf616a",
|
178
|
+
"text-color": "#bf616a"
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}
|
data/lib/snibbets/config.rb
CHANGED
data/lib/snibbets/highlight.rb
CHANGED
@@ -2,17 +2,28 @@ module Snibbets
|
|
2
2
|
module Highlight
|
3
3
|
class << self
|
4
4
|
def highlight_pygments(executable, code, syntax, theme)
|
5
|
-
|
6
|
-
|
5
|
+
puts [syntax, theme]
|
6
|
+
# syntax = syntax.nil? || syntax.empty? ? '-g' : "-l #{syntax}"
|
7
|
+
theme = theme.nil? || theme.empty? ? '' : ",style=#{theme}"
|
8
|
+
`echo #{Shellwords.escape(code)} | #{executable} -O full#{theme} -g` # #{theme}
|
7
9
|
end
|
8
10
|
|
9
11
|
def highlight_skylight(executable, code, syntax, theme)
|
10
|
-
|
12
|
+
theme ||= 'monokai'
|
13
|
+
theme_file = File.join(__dir__, '..', "#{theme}.theme")
|
11
14
|
|
12
|
-
|
15
|
+
theme = if File.exist?(theme_file)
|
16
|
+
"-t #{theme_file} "
|
17
|
+
else
|
18
|
+
''
|
19
|
+
end
|
20
|
+
return code if syntax.nil? || syntax.empty?
|
21
|
+
|
22
|
+
`echo #{Shellwords.escape(code)} | #{executable} #{theme}--syntax #{syntax}`
|
13
23
|
end
|
14
24
|
|
15
|
-
def highlight(code, filename, theme =
|
25
|
+
def highlight(code, filename, theme = nil)
|
26
|
+
theme ||= Snibbets.options[:highlight_theme]
|
16
27
|
syntax = Lexers.syntax_from_extension(filename)
|
17
28
|
|
18
29
|
skylight = TTY::Which.which('skylighting')
|
@@ -22,12 +33,10 @@ module Snibbets
|
|
22
33
|
return highlight_skylight(skylight, code, syntax, theme)
|
23
34
|
elsif Snibbets.options[:highlighter] =~ /^p/ && !pygments.empty?
|
24
35
|
return highlight_pygments(pygments, code, syntax, theme)
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
return highlight_pygments(pygments, code, syntax, theme)
|
30
|
-
end
|
36
|
+
elsif !skylight.empty?
|
37
|
+
return highlight_skylight(skylight, code, syntax, theme)
|
38
|
+
elsif !pygments.empty?
|
39
|
+
return highlight_pygments(pygments, code, syntax, theme)
|
31
40
|
end
|
32
41
|
|
33
42
|
code
|
data/lib/snibbets/lexers.rb
CHANGED
data/lib/snibbets/version.rb
CHANGED
@@ -0,0 +1,192 @@
|
|
1
|
+
{
|
2
|
+
"_comments": [
|
3
|
+
"This theme has been adapted from: https://ethanschoonover.com/solarized/"
|
4
|
+
],
|
5
|
+
"metadata" : {
|
6
|
+
"copyright": [
|
7
|
+
"SPDX-FileCopyrightText: 2011 Ethan Schoonover",
|
8
|
+
"SPDX-FileCopyrightText: 2012 Dominik Haumann <dhaumann@kde.org>",
|
9
|
+
"SPDX-FileCopyrightText: 2018 Andrew Crouthamel <andrew.crouthamel@kdemail.net>"
|
10
|
+
],
|
11
|
+
"license": "SPDX-License-Identifier: MIT",
|
12
|
+
"revision" : 6,
|
13
|
+
"name" : "Solarized Dark"
|
14
|
+
},
|
15
|
+
"text-styles": {
|
16
|
+
"Normal" : {
|
17
|
+
"text-color" : "#839496",
|
18
|
+
"selected-text-color" : "#586e75",
|
19
|
+
"bold" : false,
|
20
|
+
"italic" : false,
|
21
|
+
"underline" : false,
|
22
|
+
"strike-through" : false
|
23
|
+
},
|
24
|
+
"Keyword" : {
|
25
|
+
"text-color" : "#859900",
|
26
|
+
"selected-text-color" : "#859900"
|
27
|
+
},
|
28
|
+
"Function" : {
|
29
|
+
"text-color" : "#268bd2",
|
30
|
+
"selected-text-color" : "#268bd2"
|
31
|
+
},
|
32
|
+
"Variable" : {
|
33
|
+
"text-color" : "#268bd2",
|
34
|
+
"selected-text-color" : "#268bd2"
|
35
|
+
},
|
36
|
+
"ControlFlow" : {
|
37
|
+
"text-color" : "#859900",
|
38
|
+
"selected-text-color" : "#859900"
|
39
|
+
},
|
40
|
+
"Operator" : {
|
41
|
+
"text-color" : "#859900",
|
42
|
+
"selected-text-color" : "#859900"
|
43
|
+
},
|
44
|
+
"BuiltIn" : {
|
45
|
+
"text-color" : "#cb4b16",
|
46
|
+
"selected-text-color" : "#cb4b16"
|
47
|
+
},
|
48
|
+
"Extension" : {
|
49
|
+
"text-color" : "#268bd2",
|
50
|
+
"selected-text-color" : "#268bd2"
|
51
|
+
},
|
52
|
+
"Preprocessor" : {
|
53
|
+
"text-color" : "#cb4b16",
|
54
|
+
"selected-text-color" : "#cb4b16"
|
55
|
+
},
|
56
|
+
"Attribute" : {
|
57
|
+
"text-color" : "#268bd2",
|
58
|
+
"selected-text-color" : "#268bd2"
|
59
|
+
},
|
60
|
+
"Char" : {
|
61
|
+
"text-color" : "#2aa198",
|
62
|
+
"selected-text-color" : "#2aa198"
|
63
|
+
},
|
64
|
+
"SpecialChar" : {
|
65
|
+
"text-color" : "#dc322f",
|
66
|
+
"selected-text-color" : "#dc322f"
|
67
|
+
},
|
68
|
+
"String" : {
|
69
|
+
"text-color" : "#2aa198",
|
70
|
+
"selected-text-color" : "#2aa198"
|
71
|
+
},
|
72
|
+
"VerbatimString" : {
|
73
|
+
"text-color" : "#23877e",
|
74
|
+
"selected-text-color" : "#23877e"
|
75
|
+
},
|
76
|
+
"SpecialString" : {
|
77
|
+
"text-color" : "#dc322f",
|
78
|
+
"selected-text-color" : "#dc322f"
|
79
|
+
},
|
80
|
+
"Import" : {
|
81
|
+
"text-color" : "#2aa198",
|
82
|
+
"selected-text-color" : "#2aa198"
|
83
|
+
},
|
84
|
+
"DataType" : {
|
85
|
+
"text-color" : "#b58900",
|
86
|
+
"selected-text-color" : "#b58900"
|
87
|
+
},
|
88
|
+
"DecVal" : {
|
89
|
+
"text-color" : "#2aa198",
|
90
|
+
"selected-text-color" : "#2aa198"
|
91
|
+
},
|
92
|
+
"BaseN" : {
|
93
|
+
"text-color" : "#2aa198",
|
94
|
+
"selected-text-color" : "#2aa198"
|
95
|
+
},
|
96
|
+
"Float" : {
|
97
|
+
"text-color" : "#2aa198",
|
98
|
+
"selected-text-color" : "#2aa198"
|
99
|
+
},
|
100
|
+
"Constant" : {
|
101
|
+
"text-color" : "#2aa198",
|
102
|
+
"selected-text-color" : "#2aa198",
|
103
|
+
"bold" : true
|
104
|
+
},
|
105
|
+
"Comment" : {
|
106
|
+
"text-color" : "#586e75",
|
107
|
+
"selected-text-color" : "#93a1a1",
|
108
|
+
"italic" : true
|
109
|
+
},
|
110
|
+
"Documentation" : {
|
111
|
+
"text-color" : "#dc322f",
|
112
|
+
"selected-text-color" : "#dc322f"
|
113
|
+
},
|
114
|
+
"Annotation" : {
|
115
|
+
"text-color" : "#268bd2",
|
116
|
+
"selected-text-color" : "#268bd2"
|
117
|
+
},
|
118
|
+
"CommentVar" : {
|
119
|
+
"text-color" : "#2aa198",
|
120
|
+
"selected-text-color" : "#2aa198"
|
121
|
+
},
|
122
|
+
"RegionMarker" : {
|
123
|
+
"text-color" : "#268bd2",
|
124
|
+
"selected-text-color" : "#268bd2",
|
125
|
+
"background-color" : "#073642"
|
126
|
+
},
|
127
|
+
"Information" : {
|
128
|
+
"text-color" : "#b58900",
|
129
|
+
"selected-text-color" : "#b58900"
|
130
|
+
},
|
131
|
+
"Warning" : {
|
132
|
+
"text-color" : "#cb4b16",
|
133
|
+
"selected-text-color" : "#cb4b16"
|
134
|
+
},
|
135
|
+
"Alert" : {
|
136
|
+
"text-color" : "#d33682",
|
137
|
+
"selected-text-color" : "#d33682",
|
138
|
+
"bold" : true
|
139
|
+
},
|
140
|
+
"Error" : {
|
141
|
+
"text-color" : "#dc322f",
|
142
|
+
"selected-text-color" : "#dc322f",
|
143
|
+
"underline" : true
|
144
|
+
},
|
145
|
+
"Others" : {
|
146
|
+
"text-color" : "#859900",
|
147
|
+
"selected-text-color" : "#859900"
|
148
|
+
}
|
149
|
+
},
|
150
|
+
"editor-colors": {
|
151
|
+
"BackgroundColor" : "#002b36",
|
152
|
+
"CodeFolding": "#083d4a",
|
153
|
+
"BracketMatching" : "#083d4a",
|
154
|
+
"CurrentLine" : "#073642",
|
155
|
+
"IconBorder" : "#073642",
|
156
|
+
"IndentationLine" : "#083d4a",
|
157
|
+
"LineNumbers" : "#586e75",
|
158
|
+
"CurrentLineNumber": "#93a1a1",
|
159
|
+
"MarkBookmark" : "#268bd2",
|
160
|
+
"MarkBreakpointActive" : "#dc322f",
|
161
|
+
"MarkBreakpointReached" : "#b58900",
|
162
|
+
"MarkBreakpointDisabled" : "#d33682",
|
163
|
+
"MarkExecution" : "#586e75",
|
164
|
+
"MarkWarning" : "#cb4b16",
|
165
|
+
"MarkError" : "#dc322f",
|
166
|
+
"ModifiedLines" : "#cb4b16",
|
167
|
+
"ReplaceHighlight": "#3c4300",
|
168
|
+
"SavedLines" : "#2aa198",
|
169
|
+
"SearchHighlight": "#0a4d5e",
|
170
|
+
"TextSelection": "#083d4a",
|
171
|
+
"Separator" : "#1c3e49",
|
172
|
+
"SpellChecking" : "#dc322f",
|
173
|
+
"TabMarker" : "#586e75",
|
174
|
+
"TemplateBackground" : "#073642",
|
175
|
+
"TemplatePlaceholder" : "#073642",
|
176
|
+
"TemplateFocusedPlaceholder" : "#073642",
|
177
|
+
"TemplateReadOnlyPlaceholder" : "#073642",
|
178
|
+
"WordWrapMarker" : "#586e75"
|
179
|
+
},
|
180
|
+
"custom-styles": {
|
181
|
+
"XML": {
|
182
|
+
"Element": {
|
183
|
+
"selected-text-color": "#839496",
|
184
|
+
"text-color": "#268bd2"
|
185
|
+
},
|
186
|
+
"Element Symbols": {
|
187
|
+
"selected-text-color": "#586e75",
|
188
|
+
"text-color": "#657b83"
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
@@ -0,0 +1,196 @@
|
|
1
|
+
{
|
2
|
+
"_comments": [
|
3
|
+
"This theme has been adapted from: https://ethanschoonover.com/solarized/"
|
4
|
+
],
|
5
|
+
"metadata" : {
|
6
|
+
"copyright": [
|
7
|
+
"SPDX-FileCopyrightText: 2011 Ethan Schoonover",
|
8
|
+
"SPDX-FileCopyrightText: 2012 Dominik Haumann <dhaumann@kde.org>",
|
9
|
+
"SPDX-FileCopyrightText: 2018 Andrew Crouthamel <andrew.crouthamel@kdemail.net>"
|
10
|
+
],
|
11
|
+
"license": "SPDX-License-Identifier: MIT",
|
12
|
+
"revision" : 5,
|
13
|
+
"name" : "Solarized Light"
|
14
|
+
},
|
15
|
+
"text-styles": {
|
16
|
+
"Normal" : {
|
17
|
+
"text-color" : "#657b83",
|
18
|
+
"selected-text-color" : "#839496",
|
19
|
+
"bold" : false,
|
20
|
+
"italic" : false,
|
21
|
+
"underline" : false,
|
22
|
+
"strike-through" : false
|
23
|
+
},
|
24
|
+
"Keyword" : {
|
25
|
+
"text-color" : "#859900",
|
26
|
+
"selected-text-color" : "#859900",
|
27
|
+
"bold" : true
|
28
|
+
},
|
29
|
+
"Function" : {
|
30
|
+
"text-color" : "#268bd2",
|
31
|
+
"selected-text-color" : "#268bd2"
|
32
|
+
},
|
33
|
+
"Variable" : {
|
34
|
+
"text-color" : "#268bd2",
|
35
|
+
"selected-text-color" : "#268bd2"
|
36
|
+
},
|
37
|
+
"ControlFlow" : {
|
38
|
+
"text-color" : "#859900",
|
39
|
+
"selected-text-color" : "#859900",
|
40
|
+
"bold" : true
|
41
|
+
},
|
42
|
+
"Operator" : {
|
43
|
+
"text-color" : "#859900",
|
44
|
+
"selected-text-color" : "#859900"
|
45
|
+
},
|
46
|
+
"BuiltIn" : {
|
47
|
+
"text-color" : "#cb4b16",
|
48
|
+
"selected-text-color" : "#cb4b16"
|
49
|
+
},
|
50
|
+
"Extension" : {
|
51
|
+
"text-color" : "#268bd2",
|
52
|
+
"selected-text-color" : "#268bd2",
|
53
|
+
"bold" : true
|
54
|
+
},
|
55
|
+
"Preprocessor" : {
|
56
|
+
"text-color" : "#cb4b16",
|
57
|
+
"selected-text-color" : "#cb4b16"
|
58
|
+
},
|
59
|
+
"Attribute" : {
|
60
|
+
"text-color" : "#268bd2",
|
61
|
+
"selected-text-color" : "#268bd2"
|
62
|
+
},
|
63
|
+
"Char" : {
|
64
|
+
"text-color" : "#2aa198",
|
65
|
+
"selected-text-color" : "#2aa198"
|
66
|
+
},
|
67
|
+
"SpecialChar" : {
|
68
|
+
"text-color" : "#dc322f",
|
69
|
+
"selected-text-color" : "#dc322f"
|
70
|
+
},
|
71
|
+
"String" : {
|
72
|
+
"text-color" : "#2aa198",
|
73
|
+
"selected-text-color" : "#2aa198"
|
74
|
+
},
|
75
|
+
"VerbatimString" : {
|
76
|
+
"text-color" : "#23837a",
|
77
|
+
"selected-text-color" : "#23837a"
|
78
|
+
},
|
79
|
+
"SpecialString" : {
|
80
|
+
"text-color" : "#dc322f",
|
81
|
+
"selected-text-color" : "#dc322f"
|
82
|
+
},
|
83
|
+
"Import" : {
|
84
|
+
"text-color" : "#2aa198",
|
85
|
+
"selected-text-color" : "#2aa198"
|
86
|
+
},
|
87
|
+
"DataType" : {
|
88
|
+
"text-color" : "#b58900",
|
89
|
+
"selected-text-color" : "#b58900",
|
90
|
+
"bold" : true
|
91
|
+
},
|
92
|
+
"DecVal" : {
|
93
|
+
"text-color" : "#2aa198",
|
94
|
+
"selected-text-color" : "#2aa198"
|
95
|
+
},
|
96
|
+
"BaseN" : {
|
97
|
+
"text-color" : "#2aa198",
|
98
|
+
"selected-text-color" : "#2aa198"
|
99
|
+
},
|
100
|
+
"Float" : {
|
101
|
+
"text-color" : "#2aa198",
|
102
|
+
"selected-text-color" : "#2aa198"
|
103
|
+
},
|
104
|
+
"Constant" : {
|
105
|
+
"text-color" : "#2aa198",
|
106
|
+
"selected-text-color" : "#2aa198",
|
107
|
+
"bold" : true
|
108
|
+
},
|
109
|
+
"Comment" : {
|
110
|
+
"text-color" : "#93a1a1",
|
111
|
+
"selected-text-color" : "#586e75",
|
112
|
+
"italic" : true
|
113
|
+
},
|
114
|
+
"Documentation" : {
|
115
|
+
"text-color" : "#dc322f",
|
116
|
+
"selected-text-color" : "#dc322f"
|
117
|
+
},
|
118
|
+
"Annotation" : {
|
119
|
+
"text-color" : "#268bd2",
|
120
|
+
"selected-text-color" : "#268bd2"
|
121
|
+
},
|
122
|
+
"CommentVar" : {
|
123
|
+
"text-color" : "#2aa198",
|
124
|
+
"selected-text-color" : "#2aa198"
|
125
|
+
},
|
126
|
+
"RegionMarker" : {
|
127
|
+
"text-color" : "#268bd2",
|
128
|
+
"selected-text-color" : "#268bd2",
|
129
|
+
"background-color" : "#eee8d5"
|
130
|
+
},
|
131
|
+
"Information" : {
|
132
|
+
"text-color" : "#b58900",
|
133
|
+
"selected-text-color" : "#b58900"
|
134
|
+
},
|
135
|
+
"Warning" : {
|
136
|
+
"text-color" : "#cb4b16",
|
137
|
+
"selected-text-color" : "#cb4b16"
|
138
|
+
},
|
139
|
+
"Alert" : {
|
140
|
+
"text-color" : "#d33682",
|
141
|
+
"selected-text-color" : "#d33682",
|
142
|
+
"bold" : true
|
143
|
+
},
|
144
|
+
"Error" : {
|
145
|
+
"text-color" : "#dc322f",
|
146
|
+
"selected-text-color" : "#dc322f",
|
147
|
+
"underline" : true
|
148
|
+
},
|
149
|
+
"Others" : {
|
150
|
+
"text-color" : "#859900",
|
151
|
+
"selected-text-color" : "#859900"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
"editor-colors": {
|
155
|
+
"BackgroundColor" : "#fdf6e3",
|
156
|
+
"CodeFolding" : "#6c71c4",
|
157
|
+
"BracketMatching" : "#eee8d5",
|
158
|
+
"CurrentLine" : "#eee8d5",
|
159
|
+
"IconBorder" : "#eee8d5",
|
160
|
+
"IndentationLine" : "#eee8d5",
|
161
|
+
"LineNumbers" : "#93a1a1",
|
162
|
+
"CurrentLineNumber" : "#93a1a1",
|
163
|
+
"MarkBookmark" : "#268bd2",
|
164
|
+
"MarkBreakpointActive" : "#dc322f",
|
165
|
+
"MarkBreakpointReached" : "#b58900",
|
166
|
+
"MarkBreakpointDisabled" : "#d33682",
|
167
|
+
"MarkExecution" : "#93a1a1",
|
168
|
+
"MarkWarning" : "#cb4b16",
|
169
|
+
"MarkError" : "#dc322f",
|
170
|
+
"ModifiedLines" : "#cb4b16",
|
171
|
+
"ReplaceHighlight" : "#859900",
|
172
|
+
"SavedLines" : "#2aa198",
|
173
|
+
"SearchHighlight" : "#b58900",
|
174
|
+
"TextSelection" : "#073642",
|
175
|
+
"Separator" : "#e0dccc",
|
176
|
+
"SpellChecking" : "#dc322f",
|
177
|
+
"TabMarker" : "#93a1a1",
|
178
|
+
"TemplateBackground" : "#eee8d5",
|
179
|
+
"TemplatePlaceholder" : "#eee8d5",
|
180
|
+
"TemplateFocusedPlaceholder" : "#eee8d5",
|
181
|
+
"TemplateReadOnlyPlaceholder" : "#eee8d5",
|
182
|
+
"WordWrapMarker" : "#93a1a1"
|
183
|
+
},
|
184
|
+
"custom-styles": {
|
185
|
+
"XML": {
|
186
|
+
"Element": {
|
187
|
+
"selected-text-color": "#268bd2",
|
188
|
+
"text-color": "#268bd2"
|
189
|
+
},
|
190
|
+
"Element Symbols": {
|
191
|
+
"selected-text-color": "#93a1a1",
|
192
|
+
"text-color": "#839496"
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
data/snibbets.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables << 'snibbets'
|
29
29
|
|
30
30
|
spec.files = Dir["lib/**/*.rb"].reject { |f| f.end_with?("_spec.rb") }
|
31
|
-
spec.files += Dir["lib
|
31
|
+
spec.files += Dir["lib/*.theme"]
|
32
32
|
spec.files += Dir["[A-Z]*"]
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", "~> 2.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snibbets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
@@ -210,6 +210,9 @@ files:
|
|
210
210
|
- Rakefile
|
211
211
|
- bin/snibbets
|
212
212
|
- buildnotes.md
|
213
|
+
- lib/breeze-dark.theme
|
214
|
+
- lib/monokai.theme
|
215
|
+
- lib/nord.theme
|
213
216
|
- lib/snibbets.rb
|
214
217
|
- lib/snibbets/array.rb
|
215
218
|
- lib/snibbets/config.rb
|
@@ -222,6 +225,8 @@ files:
|
|
222
225
|
- lib/snibbets/string.rb
|
223
226
|
- lib/snibbets/version.rb
|
224
227
|
- lib/snibbets/which.rb
|
228
|
+
- lib/solarized-dark.theme
|
229
|
+
- lib/solarized-light.theme
|
225
230
|
- snibbets.gemspec
|
226
231
|
homepage: https://github.com/ttscoff/snibbets
|
227
232
|
licenses:
|