ultraviolet 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/History.txt +9 -0
  2. data/Manifest.txt +23 -2
  3. data/bin/theme2latexrender +143 -0
  4. data/bin/{theme2render → theme2xhtmlrender} +67 -9
  5. data/bin/uv +28 -51
  6. data/lib/uv.rb +14 -9
  7. data/lib/uv/html_processor.rb +23 -7
  8. data/render/latex/active4d.render +132 -0
  9. data/render/latex/all_hallows_eve.render +96 -0
  10. data/render/latex/amy.render +171 -0
  11. data/render/latex/blackboard.render +111 -0
  12. data/render/latex/brilliance_black.render +602 -0
  13. data/render/latex/brilliance_dull.render +561 -0
  14. data/render/latex/cobalt.render +162 -0
  15. data/render/latex/dawn.render +126 -0
  16. data/render/latex/eiffel.render +132 -0
  17. data/render/latex/espresso_libre.render +123 -0
  18. data/render/latex/idle.render +93 -0
  19. data/render/latex/iplastic.render +99 -0
  20. data/render/latex/lazy.render +96 -0
  21. data/render/latex/mac_classic.render +135 -0
  22. data/render/latex/magicwb_amiga.render +117 -0
  23. data/render/latex/pastels_on_dark.render +204 -0
  24. data/render/latex/slush_poppies.render +123 -0
  25. data/render/latex/spacecadet.render +81 -0
  26. data/render/latex/sunburst.render +186 -0
  27. data/render/latex/twilight.render +153 -0
  28. data/render/latex/zenburnesque.render +126 -0
  29. data/render/xhtml/active4d.render +35 -0
  30. data/render/xhtml/all_hallows_eve.render +35 -0
  31. data/render/xhtml/amy.render +35 -0
  32. data/render/xhtml/blackboard.render +35 -0
  33. data/render/xhtml/brilliance_black.render +35 -0
  34. data/render/xhtml/brilliance_dull.render +35 -0
  35. data/render/xhtml/cobalt.render +35 -0
  36. data/render/xhtml/dawn.render +35 -0
  37. data/render/xhtml/eiffel.render +35 -0
  38. data/render/xhtml/espresso_libre.render +35 -0
  39. data/render/xhtml/idle.render +35 -0
  40. data/render/xhtml/iplastic.render +35 -0
  41. data/render/xhtml/lazy.render +35 -0
  42. data/render/xhtml/mac_classic.render +35 -0
  43. data/render/xhtml/magicwb_amiga.render +35 -0
  44. data/render/xhtml/pastels_on_dark.render +35 -0
  45. data/render/xhtml/slush_poppies.render +35 -0
  46. data/render/xhtml/spacecadet.render +35 -0
  47. data/render/xhtml/sunburst.render +35 -0
  48. data/render/xhtml/twilight.render +35 -0
  49. data/render/xhtml/zenburnesque.render +35 -0
  50. metadata +27 -5
@@ -0,0 +1,162 @@
1
+ ---
2
+ name: Cobalt
3
+ line:
4
+ begin: ""
5
+ end: "}}\\\\"
6
+ tags:
7
+ - begin: "{\\color[HTML]{E1EFFF}"
8
+ end: "}"
9
+ selector: punctuation - (punctuation.definition.string || punctuation.definition.comment)
10
+ - begin: "{\\color[HTML]{FF628C}"
11
+ end: "}"
12
+ selector: constant
13
+ - begin: "{\\color[HTML]{FFDD00}"
14
+ end: "}"
15
+ selector: entity
16
+ - begin: "{\\color[HTML]{FF9D00}"
17
+ end: "}"
18
+ selector: keyword
19
+ - begin: "{\\color[HTML]{FFEE80}"
20
+ end: "}"
21
+ selector: storage
22
+ - begin: "{\\color[HTML]{3AD900}"
23
+ end: "}"
24
+ selector: string -string.unquoted.old-plist -string.unquoted.heredoc, string.unquoted.heredoc string
25
+ - begin: "{\\color[HTML]{0088FF}\\textit{"
26
+ end: "}}"
27
+ selector: comment
28
+ - begin: "{\\color[HTML]{80FFBB}"
29
+ end: "}"
30
+ selector: support
31
+ - begin: "{\\color[HTML]{CCCCCC}"
32
+ end: "}"
33
+ selector: variable
34
+ - begin: "{\\color[HTML]{FF80E1}"
35
+ end: "}"
36
+ selector: variable.language
37
+ - begin: "{\\color[HTML]{FFEE80}"
38
+ end: "}"
39
+ selector: meta.function-call
40
+ - begin: \colorbox[HTML]{800F00}{\color[HTML]{F8F8F8}
41
+ end: "}"
42
+ selector: invalid
43
+ - begin: \colorbox[HTML]{223545}{\color[HTML]{FFFFFF}
44
+ end: "}"
45
+ selector: text source, string.unquoted.heredoc, source source
46
+ - begin: "{\\color[HTML]{80FCFF}\\textit{"
47
+ end: "}}"
48
+ selector: entity.other.inherited-class
49
+ - begin: "{\\color[HTML]{9EFF80}"
50
+ end: "}"
51
+ selector: string.quoted source
52
+ - begin: "{\\color[HTML]{80FF82}"
53
+ end: "}"
54
+ selector: string constant
55
+ - begin: "{\\color[HTML]{80FFC2}"
56
+ end: "}"
57
+ selector: string.regexp
58
+ - begin: "{\\color[HTML]{EDEF7D}"
59
+ end: "}"
60
+ selector: string variable
61
+ - begin: "{\\color[HTML]{FFB054}"
62
+ end: "}"
63
+ selector: support.function
64
+ - begin: "{\\color[HTML]{EB939A}"
65
+ end: "}"
66
+ selector: support.constant
67
+ - begin: "{\\color[HTML]{FF1E00}"
68
+ end: "}"
69
+ selector: support.class.exception
70
+ - begin: "{\\color[HTML]{8996A8}"
71
+ end: "}"
72
+ selector: meta.preprocessor.c
73
+ - begin: "{\\color[HTML]{AFC4DB}"
74
+ end: "}"
75
+ selector: meta.preprocessor.c keyword
76
+ - begin: "{\\color[HTML]{73817D}"
77
+ end: "}"
78
+ selector: meta.sgml.html meta.doctype, meta.sgml.html meta.doctype entity, meta.sgml.html meta.doctype string, meta.xml-processing, meta.xml-processing entity, meta.xml-processing string
79
+ - begin: "{\\color[HTML]{9EFFFF}"
80
+ end: "}"
81
+ selector: meta.tag, meta.tag entity
82
+ - begin: "{\\color[HTML]{9EFFFF}"
83
+ end: "}"
84
+ selector: meta.selector.css entity.name.tag
85
+ - begin: "{\\color[HTML]{FFB454}"
86
+ end: "}"
87
+ selector: meta.selector.css entity.other.attribute-name.id
88
+ - begin: "{\\color[HTML]{5FE461}"
89
+ end: "}"
90
+ selector: meta.selector.css entity.other.attribute-name.class
91
+ - begin: "{\\color[HTML]{9DF39F}"
92
+ end: "}"
93
+ selector: support.type.property-name.css
94
+ - begin: "{\\color[HTML]{F6F080}"
95
+ end: "}"
96
+ selector: meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css
97
+ - begin: "{\\color[HTML]{F6AA11}"
98
+ end: "}"
99
+ selector: meta.preprocessor.at-rule keyword.control.at-rule
100
+ - begin: "{\\color[HTML]{EDF080}"
101
+ end: "}"
102
+ selector: meta.property-value support.constant.named-color.css, meta.property-value constant
103
+ - begin: "{\\color[HTML]{EB939A}"
104
+ end: "}"
105
+ selector: meta.constructor.argument.css
106
+ - begin: \colorbox[HTML]{000E1A}{\color[HTML]{F8F8F8}
107
+ end: "}"
108
+ selector: meta.diff, meta.diff.header
109
+ - begin: \colorbox[HTML]{4C0900}{\color[HTML]{F8F8F8}
110
+ end: "}"
111
+ selector: markup.deleted
112
+ - begin: \colorbox[HTML]{806F00}{\color[HTML]{F8F8F8}
113
+ end: "}"
114
+ selector: markup.changed
115
+ - begin: \colorbox[HTML]{154F00}{\color[HTML]{F8F8F8}
116
+ end: "}"
117
+ selector: markup.inserted
118
+ - begin: \colorbox[HTML]{1A4562}{
119
+ end: "}"
120
+ selector: markup.raw
121
+ - begin: \colorbox[HTML]{004480}{
122
+ end: "}"
123
+ selector: markup.quote
124
+ - begin: \colorbox[HTML]{130D26}{
125
+ end: "}"
126
+ selector: markup.list
127
+ - begin: "{\\color[HTML]{C1AFFF}\\textbf{"
128
+ end: "}}"
129
+ selector: markup.bold
130
+ - begin: "{\\color[HTML]{B8FFD9}\\textit{"
131
+ end: "}}"
132
+ selector: markup.italic
133
+ - begin: \colorbox[HTML]{001221}{\color[HTML]{C8E4FD}\textbf{
134
+ end: "}}"
135
+ selector: markup.heading
136
+ listing:
137
+ begin: |
138
+ \newcolumntype{C}{>{\color[HTML]{FFFFFF}\columncolor[HTML]{002240}}l}
139
+ \newcolumntype{N}{>{\color[HTML]{FFFFFF}\columncolor[HTML]{85533A}}l}
140
+ \begin{longtable}{NC}
141
+
142
+ end: |
143
+ \end{longtable}
144
+
145
+ document:
146
+ begin: |
147
+ \documentclass[a4paper,landscape]{article}
148
+ \usepackage{xcolor}
149
+ \usepackage{colortbl}
150
+ \usepackage{longtable}
151
+ \usepackage[left=2cm,top=1cm,right=3cm,nohead,nofoot]{geometry}
152
+ \usepackage[T1]{fontenc}
153
+ \usepackage[scaled]{beramono}
154
+ \begin{document}
155
+
156
+ end: |
157
+ \end{document}
158
+
159
+ filter: "@escaped.gsub(/(_|\\{|\\}|&|\\#|\\\\)/, '\\\\\\\\\\1').gsub(/~/, '\\\\textasciitilde').gsub(/ /,'\\\\hspace{1ex}').gsub(/\\t/,'\\\\hspace{3ex}')"
160
+ line-numbers:
161
+ begin: \texttt{
162
+ end: "}&\\mbox{\\texttt{"
@@ -0,0 +1,126 @@
1
+ ---
2
+ name: Dawn
3
+ line:
4
+ begin: ""
5
+ end: "}}\\\\"
6
+ tags:
7
+ - begin: "{\\color[HTML]{5A525F}\\textit{"
8
+ end: "}}"
9
+ selector: comment
10
+ - begin: "{\\color[HTML]{811F24}\\textbf{"
11
+ end: "}}"
12
+ selector: constant
13
+ - begin: "{\\color[HTML]{BF4F24}"
14
+ end: "}"
15
+ selector: entity
16
+ - begin: "{\\color[HTML]{794938}"
17
+ end: "}"
18
+ selector: keyword
19
+ - begin: "{\\color[HTML]{A71D5D}\\textit{"
20
+ end: "}}"
21
+ selector: storage
22
+ - begin: "{\\color[HTML]{0B6125}"
23
+ end: "}"
24
+ selector: string | punctuation.definition.string
25
+ - begin: "{\\color[HTML]{691C97}"
26
+ end: "}"
27
+ selector: support
28
+ - begin: "{\\color[HTML]{234A97}"
29
+ end: "}"
30
+ selector: variable
31
+ - begin: "{\\color[HTML]{794938}"
32
+ end: "}"
33
+ selector: punctuation.separator
34
+ - begin: "{\\color[HTML]{B52A1D}\\textbf{"
35
+ end: "}}"
36
+ selector: invalid.deprecated
37
+ - begin: \colorbox[HTML]{B52A1D}{\color[HTML]{F8F8F8}\textit{
38
+ end: "}}"
39
+ selector: invalid.illegal
40
+ - begin: \colorbox[HTML]{E1E5EC}{\color[HTML]{080808}
41
+ end: "}"
42
+ selector: string source
43
+ - begin: "{\\color[HTML]{696969}\\textbf{"
44
+ end: "}}"
45
+ selector: string constant
46
+ - begin: "{\\color[HTML]{234A97}"
47
+ end: "}"
48
+ selector: string variable
49
+ - begin: "{\\color[HTML]{CF5628}"
50
+ end: "}"
51
+ selector: string.regexp
52
+ - begin: "{\\color[HTML]{CF5628}\\textbf{"
53
+ end: "}}"
54
+ selector: string.regexp.character-class, string.regexp constant.character.escaped, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition
55
+ - begin: "{\\color[HTML]{811F24}\\textbf{"
56
+ end: "}}"
57
+ selector: string.regexp constant.character.escape
58
+ - begin: \colorbox[HTML]{E1E5EC}{
59
+ end: "}"
60
+ selector: text source
61
+ - begin: "{\\color[HTML]{693A17}"
62
+ end: "}"
63
+ selector: support.function
64
+ - begin: "{\\color[HTML]{B4371F}"
65
+ end: "}"
66
+ selector: support.constant
67
+ - begin: "{\\color[HTML]{234A97}"
68
+ end: "}"
69
+ selector: support.variable
70
+ - begin: "{\\color[HTML]{693A17}"
71
+ end: "}"
72
+ selector: markup.list
73
+ - begin: "{\\color[HTML]{19356D}\\textbf{"
74
+ end: "}}"
75
+ selector: markup.heading | markup.heading entity.name
76
+ - begin: \colorbox[HTML]{EAEAEA}{\color[HTML]{0B6125}\textit{
77
+ end: "}}"
78
+ selector: markup.quote
79
+ - begin: "{\\color[HTML]{080808}\\textit{"
80
+ end: "}}"
81
+ selector: markup.italic
82
+ - begin: "{\\color[HTML]{080808}\\textbf{"
83
+ end: "}}"
84
+ selector: markup.bold
85
+ - begin: "{\\color[HTML]{080808}\\underline{"
86
+ end: "}}"
87
+ selector: markup.underline
88
+ - begin: "{\\color[HTML]{234A97}\\textit{"
89
+ end: "}}"
90
+ selector: markup.link
91
+ - begin: \colorbox[HTML]{EAEAEA}{\color[HTML]{234A97}
92
+ end: "}"
93
+ selector: markup.raw
94
+ - begin: "{\\color[HTML]{B52A1D}"
95
+ end: "}"
96
+ selector: markup.deleted
97
+ - begin: \colorbox[HTML]{DCDCDC}{\color[HTML]{19356D}\textbf{
98
+ end: "}}"
99
+ selector: meta.separator
100
+ listing:
101
+ begin: |
102
+ \newcolumntype{C}{>{\color[HTML]{080808}\columncolor[HTML]{F5F5F5}}l}
103
+ \newcolumntype{N}{>{\color[HTML]{080808}\columncolor[HTML]{CED8E9}}l}
104
+ \begin{longtable}{NC}
105
+
106
+ end: |
107
+ \end{longtable}
108
+
109
+ document:
110
+ begin: |
111
+ \documentclass[a4paper,landscape]{article}
112
+ \usepackage{xcolor}
113
+ \usepackage{colortbl}
114
+ \usepackage{longtable}
115
+ \usepackage[left=2cm,top=1cm,right=3cm,nohead,nofoot]{geometry}
116
+ \usepackage[T1]{fontenc}
117
+ \usepackage[scaled]{beramono}
118
+ \begin{document}
119
+
120
+ end: |
121
+ \end{document}
122
+
123
+ filter: "@escaped.gsub(/(_|\\{|\\}|&|\\#|\\\\)/, '\\\\\\\\\\1').gsub(/~/, '\\\\textasciitilde').gsub(/ /,'\\\\hspace{1ex}').gsub(/\\t/,'\\\\hspace{3ex}')"
124
+ line-numbers:
125
+ begin: \texttt{
126
+ end: "}&\\mbox{\\texttt{"
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: Eiffel
3
+ line:
4
+ begin: ""
5
+ end: "}}\\\\"
6
+ tags:
7
+ - begin: "{\\color[HTML]{00B418}"
8
+ end: "}"
9
+ selector: comment
10
+ - begin: "{\\color[HTML]{0206FF}\\textit{"
11
+ end: "}}"
12
+ selector: variable
13
+ - begin: "{\\color[HTML]{0100B6}\\textbf{"
14
+ end: "}}"
15
+ selector: keyword
16
+ - begin: "{\\color[HTML]{CD0000}\\textit{"
17
+ end: "}}"
18
+ selector: constant.numeric
19
+ - begin: "{\\color[HTML]{C5060B}\\textit{"
20
+ end: "}}"
21
+ selector: constant
22
+ - begin: "{\\color[HTML]{585CF6}\\textit{"
23
+ end: "}}"
24
+ selector: constant.language
25
+ - begin: "{\\color[HTML]{D80800}"
26
+ end: "}"
27
+ selector: string
28
+ - begin: "{\\color[HTML]{26B31A}"
29
+ end: "}"
30
+ selector: constant.character.escape, string source
31
+ - begin: "{\\color[HTML]{1A921C}"
32
+ end: "}"
33
+ selector: meta.preprocessor
34
+ - begin: "{\\color[HTML]{0C450D}\\textbf{"
35
+ end: "}}"
36
+ selector: keyword.control.import
37
+ - begin: "{\\color[HTML]{0000A2}\\textbf{"
38
+ end: "}}"
39
+ selector: entity.name.function, keyword.other.name-of-parameter.objc
40
+ - begin: "{\\textit{"
41
+ end: "}}"
42
+ selector: entity.name.type
43
+ - begin: "{\\textit{"
44
+ end: "}}"
45
+ selector: entity.other.inherited-class
46
+ - begin: "{\\textit{"
47
+ end: "}}"
48
+ selector: variable.parameter
49
+ - begin: "{\\color[HTML]{70727E}"
50
+ end: "}"
51
+ selector: storage.type.method
52
+ - begin: "{\\textit{"
53
+ end: "}}"
54
+ selector: meta.section entity.name.section, declaration.section entity.name.section
55
+ - begin: "{\\color[HTML]{3C4C72}\\textbf{"
56
+ end: "}}"
57
+ selector: support.function
58
+ - begin: "{\\color[HTML]{6D79DE}\\textbf{"
59
+ end: "}}"
60
+ selector: support.class, support.type
61
+ - begin: "{\\color[HTML]{06960E}\\textbf{"
62
+ end: "}}"
63
+ selector: support.constant
64
+ - begin: "{\\color[HTML]{21439C}\\textbf{"
65
+ end: "}}"
66
+ selector: support.variable
67
+ - begin: "{\\color[HTML]{687687}"
68
+ end: "}"
69
+ selector: keyword.operator.js
70
+ - begin: \colorbox[HTML]{990000}{\color[HTML]{FFFFFF}
71
+ end: "}"
72
+ selector: invalid
73
+ - begin: \colorbox[HTML]{FFD0D0}{
74
+ end: "}"
75
+ selector: invalid.deprecated.trailing-whitespace
76
+ - begin: \colorbox[HTML]{DBE7FD}{
77
+ end: "}"
78
+ selector: text source, string.unquoted
79
+ - begin: "{\\color[HTML]{68685B}"
80
+ end: "}"
81
+ selector: meta.xml-processing, declaration.xml-processing
82
+ - begin: "{\\color[HTML]{888888}"
83
+ end: "}"
84
+ selector: meta.doctype, declaration.doctype
85
+ - begin: "{\\textit{"
86
+ end: "}}"
87
+ selector: meta.doctype.DTD, declaration.doctype.DTD
88
+ - begin: "{\\color[HTML]{1C02FF}"
89
+ end: "}"
90
+ selector: meta.tag, declaration.tag
91
+ - begin: "{\\textbf{"
92
+ end: "}}"
93
+ selector: entity.name.tag
94
+ - begin: "{\\textit{"
95
+ end: "}}"
96
+ selector: entity.other.attribute-name
97
+ - begin: "{\\color[HTML]{0C07FF}\\textbf{"
98
+ end: "}}"
99
+ selector: markup.heading
100
+ - begin: "{\\color[HTML]{000000}\\textit{"
101
+ end: "}}"
102
+ selector: markup.quote
103
+ - begin: "{\\color[HTML]{B90690}"
104
+ end: "}"
105
+ selector: markup.list
106
+ listing:
107
+ begin: |
108
+ \newcolumntype{C}{>{\color[HTML]{000000}\columncolor[HTML]{FFFFFF}}l}
109
+ \newcolumntype{N}{>{\color[HTML]{000000}\columncolor[HTML]{C3DCFF}}l}
110
+ \begin{longtable}{NC}
111
+
112
+ end: |
113
+ \end{longtable}
114
+
115
+ document:
116
+ begin: |
117
+ \documentclass[a4paper,landscape]{article}
118
+ \usepackage{xcolor}
119
+ \usepackage{colortbl}
120
+ \usepackage{longtable}
121
+ \usepackage[left=2cm,top=1cm,right=3cm,nohead,nofoot]{geometry}
122
+ \usepackage[T1]{fontenc}
123
+ \usepackage[scaled]{beramono}
124
+ \begin{document}
125
+
126
+ end: |
127
+ \end{document}
128
+
129
+ filter: "@escaped.gsub(/(_|\\{|\\}|&|\\#|\\\\)/, '\\\\\\\\\\1').gsub(/~/, '\\\\textasciitilde').gsub(/ /,'\\\\hspace{1ex}').gsub(/\\t/,'\\\\hspace{3ex}')"
130
+ line-numbers:
131
+ begin: \texttt{
132
+ end: "}&\\mbox{\\texttt{"
@@ -0,0 +1,123 @@
1
+ ---
2
+ name: Espresso Libre
3
+ line:
4
+ begin: ""
5
+ end: "}}\\\\"
6
+ tags:
7
+ - begin: "{\\color[HTML]{0066FF}\\textit{"
8
+ end: "}}"
9
+ selector: comment
10
+ - begin: "{\\color[HTML]{43A8ED}\\textbf{"
11
+ end: "}}"
12
+ selector: keyword, storage
13
+ - begin: "{\\color[HTML]{44AA43}"
14
+ end: "}"
15
+ selector: constant.numeric
16
+ - begin: "{\\color[HTML]{C5656B}\\textbf{"
17
+ end: "}}"
18
+ selector: constant
19
+ - begin: "{\\color[HTML]{585CF6}\\textbf{"
20
+ end: "}}"
21
+ selector: constant.language
22
+ - begin: "{\\color[HTML]{318495}"
23
+ end: "}"
24
+ selector: variable.language, variable.other
25
+ - begin: "{\\color[HTML]{049B0A}"
26
+ end: "}"
27
+ selector: string
28
+ - begin: "{\\color[HTML]{2FE420}"
29
+ end: "}"
30
+ selector: constant.character.escape, string source
31
+ - begin: "{\\color[HTML]{1A921C}"
32
+ end: "}"
33
+ selector: meta.preprocessor
34
+ - begin: "{\\color[HTML]{9AFF87}\\textbf{"
35
+ end: "}}"
36
+ selector: keyword.control.import
37
+ - begin: "{\\color[HTML]{FF9358}\\textbf{"
38
+ end: "}}"
39
+ selector: entity.name.function, keyword.other.name-of-parameter.objc
40
+ - begin: "{\\underline{"
41
+ end: "}}"
42
+ selector: entity.name.type
43
+ - begin: "{\\textit{"
44
+ end: "}}"
45
+ selector: entity.other.inherited-class
46
+ - begin: "{\\textit{"
47
+ end: "}}"
48
+ selector: variable.parameter
49
+ - begin: "{\\color[HTML]{8B8E9C}"
50
+ end: "}"
51
+ selector: storage.type.method
52
+ - begin: "{\\textit{"
53
+ end: "}}"
54
+ selector: meta.section entity.name.section, declaration.section entity.name.section
55
+ - begin: "{\\color[HTML]{7290D9}\\textbf{"
56
+ end: "}}"
57
+ selector: support.function
58
+ - begin: "{\\color[HTML]{6D79DE}\\textbf{"
59
+ end: "}}"
60
+ selector: support.class, support.type
61
+ - begin: "{\\color[HTML]{00AF0E}\\textbf{"
62
+ end: "}}"
63
+ selector: support.constant
64
+ - begin: "{\\color[HTML]{2F5FE0}\\textbf{"
65
+ end: "}}"
66
+ selector: support.variable
67
+ - begin: "{\\color[HTML]{687687}"
68
+ end: "}"
69
+ selector: keyword.operator.js
70
+ - begin: \colorbox[HTML]{990000}{\color[HTML]{FFFFFF}
71
+ end: "}"
72
+ selector: invalid
73
+ - begin: \colorbox[HTML]{FFD0D0}{
74
+ end: "}"
75
+ selector: invalid.deprecated.trailing-whitespace
76
+ - begin: \colorbox[HTML]{503A2D}{
77
+ end: "}"
78
+ selector: text source, string.unquoted
79
+ - begin: "{\\color[HTML]{8F7E65}"
80
+ end: "}"
81
+ selector: meta.tag.preprocessor.xml
82
+ - begin: "{\\color[HTML]{888888}"
83
+ end: "}"
84
+ selector: meta.tag.sgml.doctype
85
+ - begin: "{\\textit{"
86
+ end: "}}"
87
+ selector: string.quoted.docinfo.doctype.DTD
88
+ - begin: "{\\color[HTML]{43A8ED}"
89
+ end: "}"
90
+ selector: meta.tag, declaration.tag
91
+ - begin: "{\\textbf{"
92
+ end: "}}"
93
+ selector: entity.name.tag
94
+ - begin: "{\\textit{"
95
+ end: "}}"
96
+ selector: entity.other.attribute-name
97
+ listing:
98
+ begin: |
99
+ \newcolumntype{C}{>{\color[HTML]{BDAE9D}\columncolor[HTML]{2A211C}}l}
100
+ \newcolumntype{N}{>{\color[HTML]{BDAE9D}\columncolor[HTML]{C3DCFF}}l}
101
+ \begin{longtable}{NC}
102
+
103
+ end: |
104
+ \end{longtable}
105
+
106
+ document:
107
+ begin: |
108
+ \documentclass[a4paper,landscape]{article}
109
+ \usepackage{xcolor}
110
+ \usepackage{colortbl}
111
+ \usepackage{longtable}
112
+ \usepackage[left=2cm,top=1cm,right=3cm,nohead,nofoot]{geometry}
113
+ \usepackage[T1]{fontenc}
114
+ \usepackage[scaled]{beramono}
115
+ \begin{document}
116
+
117
+ end: |
118
+ \end{document}
119
+
120
+ filter: "@escaped.gsub(/(_|\\{|\\}|&|\\#|\\\\)/, '\\\\\\\\\\1').gsub(/~/, '\\\\textasciitilde').gsub(/ /,'\\\\hspace{1ex}').gsub(/\\t/,'\\\\hspace{3ex}')"
121
+ line-numbers:
122
+ begin: \texttt{
123
+ end: "}&\\mbox{\\texttt{"