davinci-text 1.0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.byebug_history +86 -0
- data/.circleci/config.yml +57 -0
- data/.gitignore +53 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +50 -0
- data/LICENSE.txt +21 -0
- data/README.md +91 -0
- data/REFERENCE.md +71 -0
- data/Rakefile +4 -0
- data/bin/davinci +16 -0
- data/controllers/atom_input_controller.rb +146 -0
- data/controllers/atom_output_controller.rb +107 -0
- data/controllers/cl_args_controller.rb +62 -0
- data/controllers/menu_controller.rb +148 -0
- data/controllers/sublime_input_controller.rb +97 -0
- data/controllers/sublime_output_controller.rb +62 -0
- data/davinci-text.gemspec +34 -0
- data/example_files/atom/atom-dark-syntax/CONTRIBUTING.md +1 -0
- data/example_files/atom/atom-dark-syntax/ISSUE_TEMPLATE.md +40 -0
- data/example_files/atom/atom-dark-syntax/LICENSE.md +20 -0
- data/example_files/atom/atom-dark-syntax/PULL_REQUEST_TEMPLATE.md +28 -0
- data/example_files/atom/atom-dark-syntax/README.md +9 -0
- data/example_files/atom/atom-dark-syntax/index.less +7 -0
- data/example_files/atom/atom-dark-syntax/output.less +384 -0
- data/example_files/atom/atom-dark-syntax/package.json +11 -0
- data/example_files/atom/atom-dark-syntax/styles/editor.less +50 -0
- data/example_files/atom/atom-dark-syntax/styles/syntax-variables.less +44 -0
- data/example_files/atom/atom-dark-syntax/styles/syntax.less +283 -0
- data/example_files/atom/loved-syntax/CONTRIBUTING.md +1 -0
- data/example_files/atom/loved-syntax/LICENSE.md +20 -0
- data/example_files/atom/loved-syntax/README.md +14 -0
- data/example_files/atom/loved-syntax/index.less +18 -0
- data/example_files/atom/loved-syntax/output.less +648 -0
- data/example_files/atom/loved-syntax/package.json +15 -0
- data/example_files/atom/loved-syntax/styles/colors.less +44 -0
- data/example_files/atom/loved-syntax/styles/editor.less +96 -0
- data/example_files/atom/loved-syntax/styles/syntax-variables.less +56 -0
- data/example_files/atom/loved-syntax/styles/syntax/_base.less +311 -0
- data/example_files/atom/loved-syntax/styles/syntax/c.less +5 -0
- data/example_files/atom/loved-syntax/styles/syntax/cpp.less +5 -0
- data/example_files/atom/loved-syntax/styles/syntax/cs.less +5 -0
- data/example_files/atom/loved-syntax/styles/syntax/css.less +13 -0
- data/example_files/atom/loved-syntax/styles/syntax/gfm.less +9 -0
- data/example_files/atom/loved-syntax/styles/syntax/go.less +5 -0
- data/example_files/atom/loved-syntax/styles/syntax/ini.less +5 -0
- data/example_files/atom/loved-syntax/styles/syntax/java.less +24 -0
- data/example_files/atom/loved-syntax/styles/syntax/javascript.less +17 -0
- data/example_files/atom/loved-syntax/styles/syntax/json.less +21 -0
- data/example_files/atom/loved-syntax/styles/syntax/python.less +9 -0
- data/example_files/atom/loved-syntax/styles/syntax/ruby.less +5 -0
- data/example_files/sublime/material.tmTheme +1011 -0
- data/example_files/sublime/monokai.tmTheme +432 -0
- data/lib/.byebug_history +3 -0
- data/lib/templates/atom/.gitignore +3 -0
- data/lib/templates/atom/LICENSE.md +20 -0
- data/lib/templates/atom/README.md +5 -0
- data/lib/templates/atom/index.less +1 -0
- data/lib/templates/atom/package.json +15 -0
- data/lib/templates/atom/styles/base.less +307 -0
- data/lib/templates/atom/styles/colors.less +15 -0
- data/lib/templates/atom/styles/syntax-variables.less +31 -0
- data/lib/templates/sublime/newTheme.tmTheme +438 -0
- data/lib/utility.rb +21 -0
- data/lib/version.rb +3 -0
- metadata +209 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
atom-text-editor {
|
2
|
+
background-color: @syntax-background-color;
|
3
|
+
color: @syntax-text-color;
|
4
|
+
|
5
|
+
.invisible-character {
|
6
|
+
color: @syntax-invisible-character-color;
|
7
|
+
}
|
8
|
+
|
9
|
+
.indent-guide {
|
10
|
+
color: @syntax-indent-guide-color;
|
11
|
+
}
|
12
|
+
|
13
|
+
.wrap-guide {
|
14
|
+
background-color: @syntax-wrap-guide-color;
|
15
|
+
}
|
16
|
+
|
17
|
+
.gutter {
|
18
|
+
background-color: @syntax-gutter-background-color;
|
19
|
+
}
|
20
|
+
.gutter .cursor-line {
|
21
|
+
background-color: @syntax-gutter-background-color-selected;
|
22
|
+
}
|
23
|
+
.line-number.cursor-line-no-selection {
|
24
|
+
background-color: @syntax-gutter-background-color-selected;
|
25
|
+
}
|
26
|
+
|
27
|
+
.gutter .line-number.folded,
|
28
|
+
.gutter .line-number:after,
|
29
|
+
.fold-marker:after {
|
30
|
+
color: #fba0e3;
|
31
|
+
}
|
32
|
+
|
33
|
+
.invisible {
|
34
|
+
color: @syntax-text-color;
|
35
|
+
}
|
36
|
+
|
37
|
+
.cursor {
|
38
|
+
border-color: @syntax-cursor-color;
|
39
|
+
}
|
40
|
+
|
41
|
+
.selection .region {
|
42
|
+
background-color: @syntax-selection-color;
|
43
|
+
}
|
44
|
+
|
45
|
+
.bracket-matcher .region {
|
46
|
+
border-bottom: 1px solid #f8de7e;
|
47
|
+
margin-top: -1px;
|
48
|
+
opacity: .7;
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// This defines all syntax variables that syntax themes must implement when they
|
2
|
+
// include a syntax-variables.less file.
|
3
|
+
|
4
|
+
// General colors
|
5
|
+
@syntax-text-color: #c5c8c6;
|
6
|
+
@syntax-cursor-color: white;
|
7
|
+
@syntax-selection-color: #444;
|
8
|
+
@syntax-selection-flash-color: #eee;
|
9
|
+
@syntax-background-color: #1d1f21;
|
10
|
+
|
11
|
+
// Guide colors
|
12
|
+
@syntax-wrap-guide-color: rgba(197, 200, 198, .1);
|
13
|
+
@syntax-indent-guide-color: rgba(197, 200, 198, .2);
|
14
|
+
@syntax-invisible-character-color: rgba(197, 200, 198, .2);
|
15
|
+
|
16
|
+
// For find and replace markers
|
17
|
+
@syntax-result-marker-color: #888;
|
18
|
+
@syntax-result-marker-color-selected: white;
|
19
|
+
|
20
|
+
// Gutter colors
|
21
|
+
@syntax-gutter-text-color: @syntax-text-color;
|
22
|
+
@syntax-gutter-text-color-selected: @syntax-gutter-text-color;
|
23
|
+
@syntax-gutter-background-color: lighten(@syntax-background-color, 5%);
|
24
|
+
@syntax-gutter-background-color-selected: rgba(255, 255, 255, 0.14);
|
25
|
+
|
26
|
+
// For git diff info. i.e. in the gutter
|
27
|
+
@syntax-color-renamed: #96CBFE;
|
28
|
+
@syntax-color-added: #A8FF60;
|
29
|
+
@syntax-color-modified: #E9C062;
|
30
|
+
@syntax-color-removed: #CC6666;
|
31
|
+
|
32
|
+
// For language entity colors
|
33
|
+
@syntax-color-variable: #C6C5FE;
|
34
|
+
@syntax-color-constant: #99CC99;
|
35
|
+
@syntax-color-property: #EDEDED;
|
36
|
+
@syntax-color-value: #F9EE98;
|
37
|
+
@syntax-color-function: #DAD085;
|
38
|
+
@syntax-color-method: @syntax-color-function;
|
39
|
+
@syntax-color-class: #62B1FE;
|
40
|
+
@syntax-color-keyword: #96CBFE;
|
41
|
+
@syntax-color-tag: #96CBFE;
|
42
|
+
@syntax-color-attribute: #C6C5FE;
|
43
|
+
@syntax-color-import: @syntax-color-keyword;
|
44
|
+
@syntax-color-snippet: @syntax-color-constant;
|
@@ -0,0 +1,283 @@
|
|
1
|
+
.syntax--comment {
|
2
|
+
color: #7C7C7C;
|
3
|
+
}
|
4
|
+
|
5
|
+
.syntax--entity {
|
6
|
+
color: #FFD2A7;
|
7
|
+
|
8
|
+
&.syntax--name.syntax--type {
|
9
|
+
text-decoration: underline;
|
10
|
+
color: #FFFFB6;
|
11
|
+
}
|
12
|
+
|
13
|
+
&.syntax--other.syntax--inherited-class {
|
14
|
+
color: #9B5C2E;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.syntax--keyword {
|
19
|
+
color: #96CBFE;
|
20
|
+
|
21
|
+
&.syntax--control {
|
22
|
+
color: #96CBFE;
|
23
|
+
}
|
24
|
+
|
25
|
+
&.syntax--operator {
|
26
|
+
color: #EDEDED;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.syntax--storage {
|
31
|
+
color: #CFCB90;
|
32
|
+
|
33
|
+
&.syntax--modifier {
|
34
|
+
color: #96CBFE;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.syntax--constant {
|
39
|
+
color: #99CC99;
|
40
|
+
|
41
|
+
&.syntax--numeric {
|
42
|
+
color: #FF73FD;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.syntax--variable {
|
47
|
+
color: #C6C5FE;
|
48
|
+
}
|
49
|
+
|
50
|
+
.syntax--invalid.syntax--deprecated {
|
51
|
+
text-decoration: underline;
|
52
|
+
color: #FD5FF1;
|
53
|
+
}
|
54
|
+
|
55
|
+
.syntax--invalid.syntax--illegal {
|
56
|
+
color: #FD5FF1;
|
57
|
+
background-color: rgba(86, 45, 86, 0.75);
|
58
|
+
}
|
59
|
+
|
60
|
+
// String interpolation in Ruby, CoffeeScript, and others
|
61
|
+
.syntax--string {
|
62
|
+
.syntax--source,
|
63
|
+
.syntax--meta.syntax--embedded.syntax--line {
|
64
|
+
color: #EDEDED;
|
65
|
+
}
|
66
|
+
|
67
|
+
.syntax--punctuation.syntax--section.syntax--embedded {
|
68
|
+
color: #00A0A0;
|
69
|
+
|
70
|
+
.syntax--source {
|
71
|
+
color: #00A0A0; // Required for the end of embedded strings in Ruby #716
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.syntax--string {
|
77
|
+
color: #A8FF60;
|
78
|
+
|
79
|
+
.syntax--constant {
|
80
|
+
color: #00A0A0;
|
81
|
+
}
|
82
|
+
|
83
|
+
&.syntax--regexp {
|
84
|
+
color: #E9C062;
|
85
|
+
|
86
|
+
.syntax--constant.syntax--character.syntax--escape,
|
87
|
+
.syntax--source.syntax--ruby.syntax--embedded,
|
88
|
+
.syntax--string.syntax--regexp.syntax--arbitrary-repetition {
|
89
|
+
color: #FF8000;
|
90
|
+
}
|
91
|
+
|
92
|
+
&.syntax--group {
|
93
|
+
color: #C6A24F;
|
94
|
+
background-color: rgba(255, 255, 255, 0.06);
|
95
|
+
}
|
96
|
+
|
97
|
+
&.syntax--character-class {
|
98
|
+
color: #B18A3D;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
.syntax--variable {
|
103
|
+
color: #8A9A95;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
.syntax--support {
|
108
|
+
color: #FFFFB6;
|
109
|
+
|
110
|
+
&.syntax--function {
|
111
|
+
color: #DAD085;
|
112
|
+
}
|
113
|
+
|
114
|
+
&.syntax--constant {
|
115
|
+
color: #FFD2A7;
|
116
|
+
}
|
117
|
+
|
118
|
+
&.syntax--type.syntax--property-name.syntax--css {
|
119
|
+
color: #EDEDED;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.syntax--source .syntax--entity.syntax--name.syntax--tag,
|
124
|
+
.syntax--source .syntax--punctuation.syntax--tag {
|
125
|
+
color: #96CBFE;
|
126
|
+
}
|
127
|
+
.syntax--source .syntax--entity.syntax--other.syntax--attribute-name {
|
128
|
+
color: #C6C5FE;
|
129
|
+
}
|
130
|
+
|
131
|
+
.syntax--entity {
|
132
|
+
&.syntax--other.syntax--attribute-name {
|
133
|
+
color: #C6C5FE;
|
134
|
+
}
|
135
|
+
|
136
|
+
&.syntax--name.syntax--tag.syntax--namespace,
|
137
|
+
&.syntax--other.syntax--attribute-name.syntax--namespace {
|
138
|
+
color: #E18964;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
.syntax--meta {
|
143
|
+
&.syntax--preprocessor.syntax--c {
|
144
|
+
color: #8996A8;
|
145
|
+
}
|
146
|
+
|
147
|
+
&.syntax--preprocessor.syntax--c .syntax--keyword {
|
148
|
+
color: #AFC4DB;
|
149
|
+
}
|
150
|
+
|
151
|
+
&.syntax--cast {
|
152
|
+
color: #676767;
|
153
|
+
}
|
154
|
+
|
155
|
+
&.syntax--sgml.syntax--html .syntax--meta.syntax--doctype,
|
156
|
+
&.syntax--sgml.syntax--html .syntax--meta.syntax--doctype .syntax--entity,
|
157
|
+
&.syntax--sgml.syntax--html .syntax--meta.syntax--doctype .syntax--string,
|
158
|
+
&.syntax--xml-processing,
|
159
|
+
&.syntax--xml-processing .syntax--entity,
|
160
|
+
&.syntax--xml-processing .syntax--string {
|
161
|
+
color: #494949;
|
162
|
+
}
|
163
|
+
|
164
|
+
&.syntax--tag .syntax--entity,
|
165
|
+
&.syntax--tag > .syntax--punctuation,
|
166
|
+
&.syntax--tag.syntax--inline .syntax--entity {
|
167
|
+
color: #C6C5FE;
|
168
|
+
}
|
169
|
+
&.syntax--tag .syntax--name,
|
170
|
+
&.syntax--tag.syntax--inline .syntax--name,
|
171
|
+
&.syntax--tag > .syntax--punctuation {
|
172
|
+
color: #96CBFE;
|
173
|
+
}
|
174
|
+
|
175
|
+
&.syntax--selector.syntax--css .syntax--entity.syntax--name.syntax--tag {
|
176
|
+
text-decoration: underline;
|
177
|
+
color: #96CBFE;
|
178
|
+
}
|
179
|
+
|
180
|
+
&.syntax--selector.syntax--css .syntax--entity.syntax--other.syntax--attribute-name.syntax--tag.syntax--pseudo-class {
|
181
|
+
color: #8F9D6A;
|
182
|
+
}
|
183
|
+
|
184
|
+
&.syntax--selector.syntax--css .syntax--entity.syntax--other.syntax--attribute-name.syntax--id {
|
185
|
+
color: #8B98AB;
|
186
|
+
}
|
187
|
+
|
188
|
+
&.syntax--selector.syntax--css .syntax--entity.syntax--other.syntax--attribute-name.syntax--class {
|
189
|
+
color: #62B1FE;
|
190
|
+
}
|
191
|
+
|
192
|
+
&.syntax--property-group .syntax--support.syntax--constant.syntax--property-value.syntax--css,
|
193
|
+
&.syntax--property-value .syntax--support.syntax--constant.syntax--property-value.syntax--css {
|
194
|
+
color: #F9EE98;
|
195
|
+
}
|
196
|
+
|
197
|
+
&.syntax--preprocessor.syntax--at-rule .syntax--keyword.syntax--control.syntax--at-rule {
|
198
|
+
color: #8693A5;
|
199
|
+
}
|
200
|
+
|
201
|
+
&.syntax--property-value .syntax--support.syntax--constant.syntax--named-color.syntax--css,
|
202
|
+
&.syntax--property-value .syntax--constant {
|
203
|
+
color: #87C38A;
|
204
|
+
}
|
205
|
+
|
206
|
+
&.syntax--constructor.syntax--argument.syntax--css {
|
207
|
+
color: #8F9D6A;
|
208
|
+
}
|
209
|
+
|
210
|
+
&.syntax--diff,
|
211
|
+
&.syntax--diff.syntax--header {
|
212
|
+
color: #F8F8F8;
|
213
|
+
background-color: #0E2231;
|
214
|
+
}
|
215
|
+
|
216
|
+
&.syntax--separator {
|
217
|
+
color: #60A633;
|
218
|
+
background-color: #242424;
|
219
|
+
}
|
220
|
+
|
221
|
+
&.syntax--line.syntax--entry.syntax--logfile,
|
222
|
+
&.syntax--line.syntax--exit.syntax--logfile {
|
223
|
+
background-color: rgba(238, 238, 238, 0.16);
|
224
|
+
}
|
225
|
+
|
226
|
+
&.syntax--line.syntax--error.syntax--logfile {
|
227
|
+
background-color: #751012;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
// Markdown Styles
|
232
|
+
.syntax--source.syntax--gfm {
|
233
|
+
color: #999;
|
234
|
+
}
|
235
|
+
|
236
|
+
.syntax--gfm {
|
237
|
+
.syntax--markup.syntax--heading {
|
238
|
+
color: #eee;
|
239
|
+
}
|
240
|
+
|
241
|
+
.syntax--link {
|
242
|
+
color: #555;
|
243
|
+
}
|
244
|
+
|
245
|
+
.syntax--variable.syntax--list,
|
246
|
+
.syntax--support.syntax--quote {
|
247
|
+
color: #555;
|
248
|
+
}
|
249
|
+
|
250
|
+
.syntax--link .syntax--entity {
|
251
|
+
color: #ddd;
|
252
|
+
}
|
253
|
+
|
254
|
+
.syntax--raw {
|
255
|
+
color: #aaa;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
.syntax--markdown {
|
260
|
+
.syntax--paragraph {
|
261
|
+
color: #999;
|
262
|
+
}
|
263
|
+
|
264
|
+
.syntax--heading {
|
265
|
+
color: #eee;
|
266
|
+
}
|
267
|
+
|
268
|
+
.syntax--raw {
|
269
|
+
color: #aaa;
|
270
|
+
}
|
271
|
+
|
272
|
+
.syntax--link {
|
273
|
+
color: #555;
|
274
|
+
|
275
|
+
.syntax--string {
|
276
|
+
color: #555;
|
277
|
+
|
278
|
+
&.syntax--title {
|
279
|
+
color: #ddd;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
See the [Atom contributing guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) Daniel Pintilei (danielpintilei.cf).
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
## Loved Syntax theme
|
2
|
+
Dark syntax theme inspired by [this beautiful image](http://www.handlettering.co/1-john4-19).
|
3
|
+
|
4
|
+

|
5
|
+
|
6
|
+

|
7
|
+
|
8
|
+
The fonts in the screenshots are Inconsolata and Flottflott.
|
9
|
+
|
10
|
+
### License
|
11
|
+
|
12
|
+
MIT © [Daniel Pintilei][website]
|
13
|
+
|
14
|
+
[website]: http://danielpintilei.cf
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
@import "styles/syntax-variables.less";
|
3
|
+
|
4
|
+
@import "styles/editor.less";
|
5
|
+
|
6
|
+
@import "styles/syntax/_base.less";
|
7
|
+
@import "styles/syntax/c.less";
|
8
|
+
@import "styles/syntax/cpp.less";
|
9
|
+
@import "styles/syntax/cs.less";
|
10
|
+
@import "styles/syntax/css.less";
|
11
|
+
@import "styles/syntax/gfm.less";
|
12
|
+
@import "styles/syntax/go.less";
|
13
|
+
@import "styles/syntax/ini.less";
|
14
|
+
@import "styles/syntax/java.less";
|
15
|
+
@import "styles/syntax/javascript.less";
|
16
|
+
@import "styles/syntax/json.less";
|
17
|
+
@import "styles/syntax/ruby.less";
|
18
|
+
@import "styles/syntax/python.less";
|