glyph 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.textile +37 -10
- data/README.textile +16 -11
- data/VERSION +1 -1
- data/book/config.yml +3 -5
- data/book/document.glyph +6 -4
- data/book/lib/layouts/bookindex.glyph +120 -123
- data/book/lib/layouts/bookpage.glyph +121 -123
- data/book/lib/layouts/project.glyph +3 -6
- data/book/lib/tasks/tasks.rake +6 -9
- data/book/text/changelog.glyph +9 -0
- data/book/text/compiling/programmatic_usage.glyph +1 -1
- data/book/text/extending/output_format.glyph +9 -12
- data/book/text/introduction.glyph +0 -7
- data/book/text/macros/macros_core.glyph +1 -1
- data/book/text/macros/macros_inline.glyph +1 -1
- data/book/text/text_editing/esc_quot.glyph +6 -6
- data/book/text/text_editing/stylesheets.glyph +1 -1
- data/config.yml +2 -0
- data/glyph.gemspec +25 -19
- data/lib/glyph/document.rb +23 -24
- data/lib/glyph/macro.rb +1 -2
- data/macros/html/structure.rb +3 -3
- data/macros/html5/block.rb +1 -1
- data/spec/files/test.sass +2 -0
- data/spec/files/test.scss +5 -0
- data/spec/lib/macro_spec.rb +3 -3
- data/spec/macros/filters_spec.rb +3 -2
- data/spec/macros/html5_spec.rb +1 -1
- data/spec/macros/macros_spec.rb +9 -7
- data/styles/coderay.css +47 -119
- data/styles/coderay.scss +43 -0
- data/styles/default.css +203 -217
- data/styles/default.scss +258 -0
- data/styles/definitions.scss +20 -0
- data/styles/generate +3 -0
- data/styles/pagination.css +124 -188
- data/styles/pagination.scss +214 -0
- data/tasks/generate.rake +1 -1
- metadata +27 -21
@@ -1,7 +1,7 @@
|
|
1
1
|
p[Currently, Glyph does not provide any native way to format text and pages. The reason is that there's absolutely no need for that: CSS does the job just fine. In particular, CSS3 offers specific attributes and elements that can be used specifically for paginated documents. That's no replacement for LaTeX by any means, but it is enough if you're not looking for advanced typographical features.]
|
2
2
|
p[You can embed CSS files using the %>[style], like this:]
|
3
3
|
p[code[= style[default.css] =]]
|
4
|
-
txt[In this case, the %>[style] looks for a @default.css@ file in the @/styles@ folder of your Glyph project _and_ among the default Glyph stylesheets, and embeds it within a @<style>@ tag. If you supply a file with a @.sass@ extension, it will interpret it as a Sass file and convert it to CSS automatically (if the _Haml_ gem is installed).]
|
4
|
+
txt[In this case, the %>[style] looks for a @default.css@ file in the @/styles@ folder of your Glyph project _and_ among the default Glyph stylesheets, and embeds it within a @<style>@ tag. If you supply a file with a @.sass@ or @.scss@ extension, it will interpret it as a Sass file and convert it to CSS automatically (if the _Haml_ gem is installed).]
|
5
5
|
tip[
|
6
6
|
By default, stylesheets are embedded within text files. If necessary, you can choose to link them or import them by changing the values of the $>[document.styles].
|
7
7
|
]
|
data/config.yml
CHANGED
data/glyph.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{glyph}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Fabio Cevasco"]
|
12
|
-
s.date = %q{2010-09-
|
12
|
+
s.date = %q{2010-09-23}
|
13
13
|
s.default_executable = %q{glyph}
|
14
14
|
s.description = %q{Glyph is a framework for structured document authoring.}
|
15
15
|
s.email = %q{h3rald@h3rald.com}
|
@@ -152,6 +152,7 @@ Gem::Specification.new do |s|
|
|
152
152
|
"spec/files/markdown.markdown",
|
153
153
|
"spec/files/references.glyph",
|
154
154
|
"spec/files/test.sass",
|
155
|
+
"spec/files/test.scss",
|
155
156
|
"spec/files/web1.glyph",
|
156
157
|
"spec/files/web2.glyph",
|
157
158
|
"spec/files/web_doc.glyph",
|
@@ -181,8 +182,13 @@ Gem::Specification.new do |s|
|
|
181
182
|
"spec/tasks/load_spec.rb",
|
182
183
|
"spec/tasks/project_spec.rb",
|
183
184
|
"styles/coderay.css",
|
185
|
+
"styles/coderay.scss",
|
184
186
|
"styles/default.css",
|
187
|
+
"styles/default.scss",
|
188
|
+
"styles/definitions.scss",
|
189
|
+
"styles/generate",
|
185
190
|
"styles/pagination.css",
|
191
|
+
"styles/pagination.scss",
|
186
192
|
"styles/ultraviolet/active4d.css",
|
187
193
|
"styles/ultraviolet/all_hallows_eve.css",
|
188
194
|
"styles/ultraviolet/amy.css",
|
@@ -214,32 +220,32 @@ Gem::Specification.new do |s|
|
|
214
220
|
s.rubygems_version = %q{1.3.7}
|
215
221
|
s.summary = %q{Glyph -- A Ruby-powered Document Authoring Framework}
|
216
222
|
s.test_files = [
|
217
|
-
"spec/macros/
|
223
|
+
"spec/macros/web5_spec.rb",
|
218
224
|
"spec/macros/web_spec.rb",
|
219
|
-
"spec/macros/
|
220
|
-
"spec/macros/filters_spec.rb",
|
221
|
-
"spec/macros/web5_spec.rb",
|
225
|
+
"spec/macros/macros_spec.rb",
|
222
226
|
"spec/macros/textile_spec.rb",
|
227
|
+
"spec/macros/filters_spec.rb",
|
223
228
|
"spec/macros/xml_spec.rb",
|
224
|
-
"spec/macros/
|
225
|
-
"spec/
|
226
|
-
"spec/
|
227
|
-
"spec/lib/
|
228
|
-
"spec/lib/node_spec.rb",
|
229
|
-
"spec/lib/bookmark_spec.rb",
|
229
|
+
"spec/macros/core_spec.rb",
|
230
|
+
"spec/macros/html5_spec.rb",
|
231
|
+
"spec/files/custom_command.rb",
|
232
|
+
"spec/lib/parser_spec.rb",
|
230
233
|
"spec/lib/macro_spec.rb",
|
231
|
-
"spec/lib/macro_validators_spec.rb",
|
232
234
|
"spec/lib/config_spec.rb",
|
235
|
+
"spec/lib/reporter_spec.rb",
|
236
|
+
"spec/lib/analyzer_spec.rb",
|
237
|
+
"spec/lib/macro_validators_spec.rb",
|
238
|
+
"spec/lib/interpreter_spec.rb",
|
233
239
|
"spec/lib/glyph_spec.rb",
|
234
|
-
"spec/lib/
|
235
|
-
"spec/lib/syntax_node_spec.rb",
|
240
|
+
"spec/lib/bookmark_spec.rb",
|
236
241
|
"spec/lib/document_spec.rb",
|
237
|
-
"spec/lib/
|
242
|
+
"spec/lib/syntax_node_spec.rb",
|
243
|
+
"spec/lib/node_spec.rb",
|
244
|
+
"spec/lib/commands_spec.rb",
|
245
|
+
"spec/spec_helper.rb",
|
238
246
|
"spec/tasks/load_spec.rb",
|
239
|
-
"spec/tasks/generate_spec.rb",
|
240
247
|
"spec/tasks/project_spec.rb",
|
241
|
-
"spec/
|
242
|
-
"spec/spec_helper.rb"
|
248
|
+
"spec/tasks/generate_spec.rb"
|
243
249
|
]
|
244
250
|
|
245
251
|
if s.respond_to? :specification_version then
|
data/lib/glyph/document.rb
CHANGED
@@ -9,14 +9,7 @@ module Glyph
|
|
9
9
|
# as well as replacing placeholders.
|
10
10
|
class Document
|
11
11
|
|
12
|
-
ESCAPES = [
|
13
|
-
['\\]', ']'],
|
14
|
-
['\\[', '['],
|
15
|
-
['\\=', '='],
|
16
|
-
['\\.', ''],
|
17
|
-
['\\\\', '\\'],
|
18
|
-
['\\|', '|']
|
19
|
-
]
|
12
|
+
ESCAPES = /\\([\\\]\[\|.=])/
|
20
13
|
|
21
14
|
attr_reader :bookmarks, :placeholders, :headers, :styles, :context, :errors, :todos, :topics, :links, :toc
|
22
15
|
|
@@ -49,15 +42,19 @@ module Glyph
|
|
49
42
|
|
50
43
|
# Copies bookmarks, headers, todos, styles and placeholders from another Glyph::Document
|
51
44
|
# @param [Glyph::Document] document a valid Glyph::Document
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
@
|
58
|
-
@
|
59
|
-
@
|
60
|
-
@
|
45
|
+
# @param [Hash] data specifies which data will be inherited (e.g. bookmarks, headers, ...).
|
46
|
+
# By default, all data is inherited.
|
47
|
+
# @example Inheriting everything except topics
|
48
|
+
# doc1.inherit_from doc2, :topics => false
|
49
|
+
def inherit_from(document, data={})
|
50
|
+
@bookmarks = document.bookmarks unless data[:bookmarks] == false
|
51
|
+
@headers = document.headers unless data[:headers] == false
|
52
|
+
@todos = document.todos unless data[:todos] == false
|
53
|
+
@styles = document.styles unless data[:styles] == false
|
54
|
+
@topics = document.topics unless data[:topics] == false
|
55
|
+
@placeholders = document.placeholders unless data[:placeholders] == false
|
56
|
+
@toc = document.toc unless data[:toc] == false
|
57
|
+
@links = document.links unless data[:links] == true
|
61
58
|
self
|
62
59
|
end
|
63
60
|
|
@@ -139,17 +136,13 @@ module Glyph
|
|
139
136
|
return (@state = :finalized) if @context[:embedded]
|
140
137
|
raise RuntimeError, "Document cannot be finalized due to previous errors" unless @context[:document].errors.blank?
|
141
138
|
# Substitute placeholders
|
142
|
-
ESCAPES.each{|e| @output.gsub! e[0], e[1]}
|
143
139
|
@placeholders.each_pair do |key, value|
|
144
140
|
begin
|
145
141
|
key_s = key.to_s
|
146
142
|
value_s = value.call(self).to_s
|
147
|
-
toc[:contents].gsub! key_s, value_s
|
148
|
-
|
149
|
-
|
150
|
-
ESCAPES.each{|e| t[:contents].gsub! e[0], e[1]}
|
151
|
-
t[:contents].gsub! key_s, value_s
|
152
|
-
end
|
143
|
+
toc[:contents].gsub! key_s, value_s rescue nil
|
144
|
+
@topics.each do |t|
|
145
|
+
t[:contents].gsub! key_s, value_s
|
153
146
|
end
|
154
147
|
@output.gsub! key_s, value_s
|
155
148
|
rescue Glyph::MacroError => e
|
@@ -158,6 +151,12 @@ module Glyph
|
|
158
151
|
Glyph.warning e.message
|
159
152
|
end
|
160
153
|
end
|
154
|
+
# Substitute escape sequences
|
155
|
+
@output.gsub!(ESCAPES) { |match| ($1 == '.') ? '' : $1 }
|
156
|
+
toc[:contents].gsub!(ESCAPES) { |match| ($1 == '.') ? '' : $1 } rescue nil
|
157
|
+
@topics.each do |t|
|
158
|
+
t[:contents].gsub!(ESCAPES) { |match| ($1 == '.') ? '' : $1 }
|
159
|
+
end
|
161
160
|
@state = :finalized
|
162
161
|
end
|
163
162
|
|
data/lib/glyph/macro.rb
CHANGED
@@ -218,7 +218,6 @@ module Glyph
|
|
218
218
|
@node << subtree
|
219
219
|
result = interpreter.document.output
|
220
220
|
end
|
221
|
-
result.gsub(/\\*([\[\]])/){"\\#$1"}
|
222
221
|
result
|
223
222
|
end
|
224
223
|
|
@@ -252,7 +251,7 @@ module Glyph
|
|
252
251
|
block = Glyph::MACROS[@name]
|
253
252
|
macro_error "Undefined macro '#@name'}" unless block
|
254
253
|
res = instance_exec(@node, &block).to_s
|
255
|
-
res.gsub!(
|
254
|
+
res.gsub!(/\\?([\[\]\|])/){"\\#$1"}
|
256
255
|
res
|
257
256
|
end
|
258
257
|
|
data/macros/html/structure.rb
CHANGED
@@ -120,12 +120,12 @@ macro :style do
|
|
120
120
|
when 'embed' then
|
121
121
|
style = ""
|
122
122
|
case file.extname
|
123
|
-
when ".css"
|
123
|
+
when ".css" then
|
124
124
|
style = file_load file
|
125
|
-
when ".sass"
|
125
|
+
when ".sass", ".scss" then
|
126
126
|
begin
|
127
127
|
require 'sass'
|
128
|
-
style = Sass::Engine.new(file_load(file)).render
|
128
|
+
style = Sass::Engine.new(file_load(file), :syntax => file.extname.gsub(/^\./, '').to_sym).render
|
129
129
|
rescue LoadError
|
130
130
|
macro_error "Haml is not installed. Please run: gem install haml"
|
131
131
|
rescue Exception
|
data/macros/html5/block.rb
CHANGED
@@ -24,7 +24,7 @@ macro :figure do
|
|
24
24
|
caption = "figcaption[#{param(1)}]" rescue nil
|
25
25
|
figure_element_for image, alt, caption do |alt, dest_file, caption|
|
26
26
|
interpret %{=figure[
|
27
|
-
img[#{alt}@src[#{Glyph['document.
|
27
|
+
img[#{alt}@src[#{Glyph["output.#{Glyph['document.output']}.base"]}#{dest_file}]#{@node.attrs.join}]
|
28
28
|
#{caption}
|
29
29
|
]}
|
30
30
|
end
|
data/spec/files/test.sass
CHANGED
data/spec/lib/macro_spec.rb
CHANGED
@@ -194,9 +194,9 @@ describe Glyph::Macro do
|
|
194
194
|
Glyph.macro :test_int do
|
195
195
|
interpret "- #{value} -"
|
196
196
|
end
|
197
|
-
text1 =
|
198
|
-
text2 =
|
199
|
-
text3 =
|
197
|
+
text1 = "em[test\\\\\\.\\[...\\\\\\.\\]]" # test\\\.\[\\\.\]
|
198
|
+
text2 = "em[=test\\\\\\.[...\\\\\\.]=]" # test\\\.[\\\.]
|
199
|
+
text3 = "test_int[em[=test\\\\\\.[...\\\\\\.]=]]"
|
200
200
|
out = "<em>test\\[...\\]</em>"
|
201
201
|
output_for(text1).should == out
|
202
202
|
output_for(text2).should == out
|
data/spec/macros/filters_spec.rb
CHANGED
@@ -55,8 +55,9 @@ interpret text
|
|
55
55
|
code = %{def test_method(a, b)
|
56
56
|
puts a+b
|
57
57
|
end}
|
58
|
-
cr_result = %{<div class=\"CodeRay\"> <div class=\"code\"><pre><span class=\"r\">def</span>
|
59
|
-
|
58
|
+
cr_result = %{<div class=\"CodeRay\"> <div class=\"code\"><pre><span class=\"no\">1</span> <span class=\"r\">def</span> <span class=\"fu\">test_method</span>(a, b)
|
59
|
+
<span class=\"no\">2</span> puts a+b
|
60
|
+
<span class=\"no\">3</span> <span class=\"r\">end</span></pre></div> </div>}
|
60
61
|
uv_result = %{<pre class=\"iplastic\"><span class=\"Keyword\">def</span>
|
61
62
|
<span class=\"FunctionName\">test_method</span>(<span class=\"Arguments\">a<span class=\"Arguments\">,</span> b</span>)
|
62
63
|
puts a<span class=\"Keyword\">+</span>b <span class=\"Keyword\">end</span> </pre>}
|
data/spec/macros/html5_spec.rb
CHANGED
@@ -44,7 +44,7 @@ describe "Macro:" do
|
|
44
44
|
<meta name="copyright" content="#{Glyph["document.author"]}" />
|
45
45
|
<meta name="generator" content="Glyph v#{Glyph::VERSION} (http://www.h3rald.com/glyph)" />
|
46
46
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
47
|
-
<style type=\"text/css\">#main { background-color: blue; }</style>
|
47
|
+
<style type=\"text/css\">#main { background-color: blue; margin: 12px; }</style>
|
48
48
|
</head>
|
49
49
|
</html>
|
50
50
|
}.gsub(/\n|\t/, '')
|
data/spec/macros/macros_spec.rb
CHANGED
@@ -40,8 +40,8 @@ describe "Macro:" do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
it "document, head, style" do
|
43
|
-
|
44
|
-
|
43
|
+
file_copy Glyph::SPEC_DIR/'files/test.scss', Glyph::PROJECT/'styles/test.scss'
|
44
|
+
doc = %{
|
45
45
|
<?xml version="1.0" encoding="utf-8"?>
|
46
46
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
47
47
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
@@ -51,10 +51,14 @@ describe "Macro:" do
|
|
51
51
|
<meta name="copyright" content="#{Glyph["document.author"]}" />
|
52
52
|
<meta name="generator" content="Glyph v#{Glyph::VERSION} (http://www.h3rald.com/glyph)" />
|
53
53
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
54
|
-
<style type=\"text/css\">#main { background-color: blue; }</style>
|
54
|
+
<style type=\"text/css\">#main { background-color: blue; margin: 12px; }</style>
|
55
55
|
</head>
|
56
56
|
</html>
|
57
|
-
}
|
57
|
+
}
|
58
|
+
interpret "document[head[style[test.sass]]]"
|
59
|
+
@p.document.output.gsub(/\n|\t/, '').should == doc.gsub(/\n|\t/, '')
|
60
|
+
interpret "document[head[style[test.scss]]]"
|
61
|
+
@p.document.output.gsub(/\n|\t/, '').should == doc.gsub(/\n|\t/, '')
|
58
62
|
end
|
59
63
|
|
60
64
|
it "style should link files by absolute or relative path in Lite mode" do
|
@@ -68,7 +72,7 @@ describe "Macro:" do
|
|
68
72
|
<meta name="copyright" content="#{Glyph["document.author"]}" />
|
69
73
|
<meta name="generator" content="Glyph v#{Glyph::VERSION} (http://www.h3rald.com/glyph)" />
|
70
74
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
71
|
-
<style type=\"text/css\">#main { background-color: blue; }</style>
|
75
|
+
<style type=\"text/css\">#main { background-color: blue; margin: 12px; }</style>
|
72
76
|
</head>
|
73
77
|
</html>
|
74
78
|
}.gsub(/\n|\t/, '')
|
@@ -76,8 +80,6 @@ describe "Macro:" do
|
|
76
80
|
Dir.chdir Glyph::PROJECT
|
77
81
|
interpret "document[head[style[styles/test.sass]]]"
|
78
82
|
@p.document.output.gsub(/\n|\t/, '').should == result
|
79
|
-
interpret "document[head[style[#{Glyph::PROJECT}/styles/test.sass]]]"
|
80
|
-
@p.document.output.gsub(/\n|\t/, '').should == result
|
81
83
|
end
|
82
84
|
|
83
85
|
it "style should import and link stylesheets" do
|
data/styles/coderay.css
CHANGED
@@ -1,121 +1,49 @@
|
|
1
1
|
.CodeRay {
|
2
|
-
|
3
|
-
border:
|
2
|
+
-webkit-border-radius: 5px;
|
3
|
+
-moz-border-radius: 5px;
|
4
|
+
border-radius: 5px;
|
5
|
+
background-color: #222;
|
4
6
|
font-family: 'Courier New', 'Terminal', monospace;
|
5
|
-
color: #
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
.CodeRay .
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
.CodeRay .
|
20
|
-
|
21
|
-
|
22
|
-
.CodeRay .
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
.CodeRay .
|
29
|
-
|
30
|
-
.CodeRay .
|
31
|
-
|
32
|
-
.CodeRay .
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
.CodeRay .
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
.CodeRay .
|
41
|
-
|
42
|
-
.CodeRay .
|
43
|
-
|
44
|
-
.CodeRay .
|
45
|
-
|
46
|
-
.CodeRay .
|
47
|
-
|
48
|
-
.CodeRay .do { color:#970 }
|
49
|
-
.CodeRay .dt { color:#34b }
|
50
|
-
.CodeRay .ds { color:#D42; font-weight:bold }
|
51
|
-
.CodeRay .e { color:#666; font-weight:bold }
|
52
|
-
.CodeRay .en { color:#800; font-weight:bold }
|
53
|
-
.CodeRay .er { color:#F00; background-color:#FAA }
|
54
|
-
.CodeRay .ex { color:#C00; font-weight:bold }
|
55
|
-
.CodeRay .fl { color:#60E; font-weight:bold }
|
56
|
-
.CodeRay .fu { color:#06B; font-weight:bold }
|
57
|
-
.CodeRay .gv { color:#d70; font-weight:bold }
|
58
|
-
.CodeRay .hx { color:#058; font-weight:bold }
|
59
|
-
.CodeRay .i { color:#00D; font-weight:bold }
|
60
|
-
.CodeRay .ic { color:#B44; font-weight:bold }
|
61
|
-
|
62
|
-
.CodeRay .il { background-color: hsla(0,0%,0%,0.1); color: black }
|
63
|
-
.CodeRay .il .idl { font-weight: bold; color: #666 }
|
64
|
-
.CodeRay .idl { font-weight: bold; color: #666; }
|
65
|
-
|
66
|
-
.CodeRay .im { color:#f00; }
|
67
|
-
.CodeRay .in { color:#B2B; font-weight:bold }
|
68
|
-
.CodeRay .iv { color:#33B }
|
69
|
-
.CodeRay .la { color:#970; font-weight:bold }
|
70
|
-
.CodeRay .lv { color:#963 }
|
71
|
-
.CodeRay .ns { color:#707; font-weight:bold }
|
72
|
-
.CodeRay .oc { color:#40E; font-weight:bold }
|
73
|
-
.CodeRay .op { }
|
74
|
-
.CodeRay .pc { color:#058; font-weight:bold }
|
75
|
-
.CodeRay .pd { color:#369; font-weight:bold }
|
76
|
-
.CodeRay .pp { color:#579; }
|
77
|
-
.CodeRay .ps { color:#00C; font-weight:bold }
|
78
|
-
.CodeRay .pt { color:#074; font-weight:bold }
|
79
|
-
.CodeRay .r, .kw { color:#080; font-weight:bold }
|
80
|
-
|
81
|
-
.CodeRay .ke { color: #808; }
|
82
|
-
.CodeRay .ke .dl { color: #606; }
|
83
|
-
.CodeRay .ke .ch { color: #80f; }
|
84
|
-
.CodeRay .vl { color: #088; }
|
85
|
-
|
86
|
-
.CodeRay .rx { background-color:hsla(300,100%,50%,0.1); color:#808 }
|
87
|
-
.CodeRay .rx .k { }
|
88
|
-
.CodeRay .rx .dl { color:#404 }
|
89
|
-
.CodeRay .rx .mod { color:#C2C }
|
90
|
-
.CodeRay .rx .fu { color:#404; font-weight: bold }
|
91
|
-
|
92
|
-
.CodeRay .s { background-color:hsla(0,100%,50%,0.1); color: #D20; }
|
93
|
-
.CodeRay .s .k { }
|
94
|
-
.CodeRay .s .ch { color: #b0b; }
|
95
|
-
.CodeRay .s .dl { color: #710; }
|
96
|
-
|
97
|
-
.CodeRay .sh { background-color:hsla(120,100%,50%,0.1); color:#2B2 }
|
98
|
-
.CodeRay .sh .k { }
|
99
|
-
.CodeRay .sh .dl { color:#161 }
|
100
|
-
|
101
|
-
.CodeRay .sy { color:#A60 }
|
102
|
-
.CodeRay .sy .k { color:#A60 }
|
103
|
-
.CodeRay .sy .dl { color:#630 }
|
104
|
-
|
105
|
-
.CodeRay .ta { color:#070 }
|
106
|
-
.CodeRay .ts { color:#D70; font-weight:bold }
|
107
|
-
.CodeRay .ty { color:#339; font-weight:bold }
|
108
|
-
.CodeRay .v { color:#036 }
|
109
|
-
.CodeRay .xt { color:#444 }
|
110
|
-
|
111
|
-
.CodeRay .ins { background: #afa; }
|
112
|
-
.CodeRay .del { background: #faa; }
|
113
|
-
.CodeRay .chg { color: #aaf; background: #007; }
|
114
|
-
.CodeRay .head { color: #f8f; background: #505 }
|
115
|
-
.CodeRay .head .filename { color: white; }
|
116
|
-
|
117
|
-
.CodeRay .ins .ins { color: #080; font-weight:bold }
|
118
|
-
.CodeRay .del .del { color: #800; font-weight:bold }
|
119
|
-
.CodeRay .chg .chg { color: #66f; }
|
120
|
-
.CodeRay .head .head { color: #f4f; }
|
121
|
-
|
7
|
+
color: #E6E0DB;
|
8
|
+
padding: 20px;
|
9
|
+
overflow: auto;
|
10
|
+
font-size: 0.8em;
|
11
|
+
margin: 20px 0 20px 0; }
|
12
|
+
.CodeRay pre {
|
13
|
+
line-height: 1.2em;
|
14
|
+
margin: 0px;
|
15
|
+
padding: 0px; }
|
16
|
+
.CodeRay .no {
|
17
|
+
font-weight: bold;
|
18
|
+
color: #595959; }
|
19
|
+
.CodeRay .an {
|
20
|
+
color: #E7BE69; }
|
21
|
+
.CodeRay .c {
|
22
|
+
color: #BC9358;
|
23
|
+
font-style: italic; }
|
24
|
+
.CodeRay .ch {
|
25
|
+
color: #509E4F; }
|
26
|
+
.CodeRay .cl, .CodeRay .co {
|
27
|
+
color: #FFF; }
|
28
|
+
.CodeRay .fl {
|
29
|
+
color: #A4C260; }
|
30
|
+
.CodeRay .fu {
|
31
|
+
color: #FFC56D; }
|
32
|
+
.CodeRay .gv {
|
33
|
+
color: #D0CFFE; }
|
34
|
+
.CodeRay .i {
|
35
|
+
color: #A4C260; }
|
36
|
+
.CodeRay .iv {
|
37
|
+
color: #D0CFFE; }
|
38
|
+
.CodeRay .pp {
|
39
|
+
color: #E7BE69; }
|
40
|
+
.CodeRay .r {
|
41
|
+
color: #CB7832; }
|
42
|
+
.CodeRay .rx, .CodeRay .s {
|
43
|
+
color: #A4C260; }
|
44
|
+
.CodeRay .sy {
|
45
|
+
color: #6C9CBD; }
|
46
|
+
.CodeRay .ta {
|
47
|
+
color: #E7BE69; }
|
48
|
+
.CodeRay .pc {
|
49
|
+
color: #6C9CBD; }
|