diff options
author | murphy <murphy@rubychan.de> | 2006-07-11 05:26:11 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-07-11 05:26:11 +0000 |
commit | 3baabd1186cf293fd3caec3ab8ee3e406e9038b6 (patch) | |
tree | f98e791db27d42bd0a1269b1cfad8cd92ef5970d | |
parent | 9f4c7ab7553f9be7c9d14da0ba7462ad746c2f5d (diff) | |
download | coderay-3baabd1186cf293fd3caec3ab8ee3e406e9038b6.tar.gz |
Adjusted Test outputs after re-indentation.
-rw-r--r-- | demo/demo_css.out | 14 | ||||
-rw-r--r-- | demo/demo_div.out | 4 | ||||
-rw-r--r-- | demo/demo_dump.out | 4 | ||||
-rw-r--r-- | demo/demo_highlight.out | 20 | ||||
-rw-r--r-- | demo/demo_html.out | 28 | ||||
-rw-r--r-- | demo/demo_html2.out | 32 | ||||
-rw-r--r-- | demo/demo_html_list.out | 28 | ||||
-rw-r--r-- | demo/demo_more.out | 2 |
8 files changed, 66 insertions, 66 deletions
diff --git a/demo/demo_css.out b/demo/demo_css.out index d1c6259..b3b7a84 100644 --- a/demo/demo_css.out +++ b/demo/demo_css.out @@ -1,8 +1,8 @@ .CodeRay {
- background-color: #f8f8f8;
- border: 1px solid silver;
- font-family: 'Courier New', 'Terminal', monospace;
- color: #100;
+ background-color: #f8f8f8;
+ border: 1px solid silver;
+ font-family: 'Courier New', 'Terminal', monospace;
+ color: #100;
}
.CodeRay pre { margin: 0px }
@@ -14,9 +14,9 @@ table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px } table.CodeRay td { padding: 2px 4px; vertical-align: top }
.CodeRay .line_numbers, .CodeRay .no {
- background-color: #def;
- color: gray;
- text-align: right;
+ background-color: #def;
+ color: gray;
+ text-align: right;
}
.CodeRay .line_numbers tt { font-weight: bold }
.CodeRay .no { padding: 0px 4px }
diff --git a/demo/demo_div.out b/demo/demo_div.out index c85062e..2d4317e 100644 --- a/demo/demo_div.out +++ b/demo/demo_div.out @@ -1,5 +1,5 @@ <div class="CodeRay">
- <div class="code"><pre><span style="color:#080; font-weight:bold">for</span> a <span style="color:#080; font-weight:bold">in</span> <span style="color:#00D; font-weight:bold">0</span>..<span style="color:#00D; font-weight:bold">255</span>
+ <div class="code"><pre><span style="color:#080; font-weight:bold">for</span> a <span style="color:#080; font-weight:bold">in</span> <span style="color:#00D; font-weight:bold">0</span>..<span style="color:#00D; font-weight:bold">255</span>
a = a.chr
<span style="color:#080; font-weight:bold">begin</span>
x = eval(<span style="background-color:#fff0f0"><span style="color:#710">"</span><span style="color:#D20">?</span><span style="color:#04D">\\</span><span style="background-color:#fff0f0"><span style="color:#710">#{</span>a<span style="color:#710">}</span></span><span style="color:#710">"</span></span>)
@@ -13,5 +13,5 @@ <span style="color:#080; font-weight:bold">end</span>
puts
<span style="color:#080; font-weight:bold">end</span>
-</pre></div>
+</pre></div>
</div>
diff --git a/demo/demo_dump.out b/demo/demo_dump.out index a032b50..5e3a64b 100644 --- a/demo/demo_dump.out +++ b/demo/demo_dump.out @@ -2,7 +2,7 @@ YAML: 2358 bytes Dump: 1058 bytes
undumped:
<div class="CodeRay">
- <div class="code"><pre>require <span class="s"><span class="dl">'</span><span class="k">coderay</span><span class="dl">'</span></span>
+ <div class="code"><pre>require <span class="s"><span class="dl">'</span><span class="k">coderay</span><span class="dl">'</span></span>
<span class="c"># scan some code</span>
tokens = <span class="co">CodeRay</span>.scan(<span class="co">File</span>.read(<span class="gv">$0</span>), <span class="sy">:ruby</span>)
@@ -17,5 +17,5 @@ puts <span class="s"><span class="dl">'</span><span class="k">Dump: %4d bytes</s <span class="c"># undump and encode</span>
puts <span class="s"><span class="dl">'</span><span class="k">undumped:</span><span class="dl">'</span></span>, dump.undump.div(<span class="sy">:css</span> => <span class="sy">:class</span>)
-</pre></div>
+</pre></div>
</div>
diff --git a/demo/demo_highlight.out b/demo/demo_highlight.out index 193faa7..60738e7 100644 --- a/demo/demo_highlight.out +++ b/demo/demo_highlight.out @@ -1,14 +1,14 @@ <div class="CodeRay">
- <div class="code"><pre>puts <span class="s"><span class="dl">"</span><span class="k">Hello, World!</span><span class="dl">"</span></span></pre></div>
+ <div class="code"><pre>puts <span class="s"><span class="dl">"</span><span class="k">Hello, World!</span><span class="dl">"</span></span></pre></div>
</div>
<html>
<head>
<style type="text/css">
.CodeRay {
- background-color: #f8f8f8;
- border: 1px solid silver;
- font-family: 'Courier New', 'Terminal', monospace;
- color: #100;
+ background-color: #f8f8f8;
+ border: 1px solid silver;
+ font-family: 'Courier New', 'Terminal', monospace;
+ color: #100;
}
.CodeRay pre { margin: 0px }
@@ -20,9 +20,9 @@ table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px } table.CodeRay td { padding: 2px 4px; vertical-align: top }
.CodeRay .line_numbers, .CodeRay .no {
- background-color: #def;
- color: gray;
- text-align: right;
+ background-color: #def;
+ color: gray;
+ text-align: right;
}
.CodeRay .line_numbers tt { font-weight: bold }
.CodeRay .no { padding: 0px 4px }
@@ -113,7 +113,7 @@ ol.CodeRay li { white-space: pre } <body>
<table class="CodeRay"><tr>
- <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt>
+ <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt>
</tt>2<tt>
</tt>3<tt>
</tt>4<tt>
@@ -128,7 +128,7 @@ ol.CodeRay li { white-space: pre } </tt>13<tt>
</tt>14<tt>
</tt></pre></td>
- <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">require <span style="background-color:#fff0f0"><span style="color:#710">'</span><span style="color:#D20">coderay</span><span style="color:#710">'</span></span><tt>
+ <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">require <span style="background-color:#fff0f0"><span style="color:#710">'</span><span style="color:#D20">coderay</span><span style="color:#710">'</span></span><tt>
</tt><tt>
</tt>puts <span style="color:#036; font-weight:bold">CodeRay</span>.highlight(<span style="background-color:#fff0f0"><span style="color:#710">'</span><span style="color:#D20">puts "Hello, World!"</span><span style="color:#710">'</span></span>, <span style="color:#A60">:ruby</span>)<tt>
</tt><tt>
diff --git a/demo/demo_html.out b/demo/demo_html.out index 0014d49..b9b2a2b 100644 --- a/demo/demo_html.out +++ b/demo/demo_html.out @@ -1,15 +1,15 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="de">
<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>CodeRay HTML Encoder Example</title>
- <style type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>CodeRay HTML Encoder Example</title>
+ <style type="text/css">
.CodeRay {
- background-color: #f8f8f8;
- border: 1px solid silver;
- font-family: 'Courier New', 'Terminal', monospace;
- color: #100;
+ background-color: #f8f8f8;
+ border: 1px solid silver;
+ font-family: 'Courier New', 'Terminal', monospace;
+ color: #100;
}
.CodeRay pre { margin: 0px }
@@ -21,9 +21,9 @@ table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px } table.CodeRay td { padding: 2px 4px; vertical-align: top }
.CodeRay .line_numbers, .CodeRay .no {
- background-color: #def;
- color: gray;
- text-align: right;
+ background-color: #def;
+ color: gray;
+ text-align: right;
}
.CodeRay .line_numbers tt { font-weight: bold }
.CodeRay .no { padding: 0px 4px }
@@ -110,12 +110,12 @@ ol.CodeRay li { white-space: pre } .CodeRay .v { color:#036 }
.CodeRay .xt { color:#444 }
- </style>
+ </style>
</head>
<body style="background-color: white;">
<table class="CodeRay"><tr>
- <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt>
+ <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt>
</tt>2<tt>
</tt>3<tt>
</tt>4<tt>
@@ -501,7 +501,7 @@ ol.CodeRay li { white-space: pre } </tt>384<tt>
</tt>385<tt>
</tt></pre></td>
- <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">require <span class="s"><span class="dl">'</span><span class="k">scanner</span><span class="dl">'</span></span><tt>
+ <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">require <span class="s"><span class="dl">'</span><span class="k">scanner</span><span class="dl">'</span></span><tt>
</tt><tt>
</tt><span class="r">module</span> <span class="cl">CodeRay</span><tt>
</tt> <tt>
diff --git a/demo/demo_html2.out b/demo/demo_html2.out index 326be92..eb74188 100644 --- a/demo/demo_html2.out +++ b/demo/demo_html2.out @@ -1,15 +1,15 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="de">
<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>CodeRay HTML Encoder Example</title>
- <style type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>CodeRay HTML Encoder Example</title>
+ <style type="text/css">
.CodeRay {
- background-color: #f8f8f8;
- border: 1px solid silver;
- font-family: 'Courier New', 'Terminal', monospace;
- color: #100;
+ background-color: #f8f8f8;
+ border: 1px solid silver;
+ font-family: 'Courier New', 'Terminal', monospace;
+ color: #100;
}
.CodeRay pre { margin: 0px }
@@ -21,9 +21,9 @@ table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px } table.CodeRay td { padding: 2px 4px; vertical-align: top }
.CodeRay .line_numbers, .CodeRay .no {
- background-color: #def;
- color: gray;
- text-align: right;
+ background-color: #def;
+ color: gray;
+ text-align: right;
}
.CodeRay .line_numbers tt { font-weight: bold }
.CodeRay .no { padding: 0px 4px }
@@ -110,12 +110,12 @@ ol.CodeRay li { white-space: pre } .CodeRay .v { color:#036 }
.CodeRay .xt { color:#444 }
- </style>
+ </style>
</head>
<body style="background-color: white;">
<table class="CodeRay"><tr>
- <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt>
+ <td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt>
</tt>2<tt>
</tt>3<tt>
</tt>4<tt>
@@ -127,7 +127,7 @@ ol.CodeRay li { white-space: pre } </tt><strong>10</strong><tt>
</tt>11<tt>
</tt></pre></td>
- <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">require <span style="background-color:#fff0f0"><span style="color:#710">'</span><span style="color:#D20">coderay</span><span style="color:#710">'</span></span><tt>
+ <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">require <span style="background-color:#fff0f0"><span style="color:#710">'</span><span style="color:#D20">coderay</span><span style="color:#710">'</span></span><tt>
</tt><tt>
</tt><span style="color:#888"># scan this file</span><tt>
</tt>tokens = <span style="color:#036; font-weight:bold">CodeRay</span>.scan(<span style="color:#036; font-weight:bold">File</span>.read(<span style="color:#d70; font-weight:bold">$0</span>) * <span style="color:#00D; font-weight:bold">1</span>, <span style="color:#A60">:ruby</span>)<tt>
@@ -141,7 +141,7 @@ ol.CodeRay li { white-space: pre } </tt></pre></td>
</tr></table>
<hr /><div class="CodeRay">
- <div class="code"><pre><span class="no"> 8</span> require <span style="background-color:#fff0f0"><span style="color:#710">'</span><span style="color:#D20">coderay</span><span style="color:#710">'</span></span>
+ <div class="code"><pre><span class="no"> 8</span> require <span style="background-color:#fff0f0"><span style="color:#710">'</span><span style="color:#D20">coderay</span><span style="color:#710">'</span></span>
<span class="no"> 9</span>
<span class="no"><strong>10</strong></span> <span style="color:#888"># scan this file</span>
<span class="no">11</span> tokens = <span style="color:#036; font-weight:bold">CodeRay</span>.scan(<span style="color:#036; font-weight:bold">File</span>.read(<span style="color:#d70; font-weight:bold">$0</span>) * <span style="color:#00D; font-weight:bold">1</span>, <span style="color:#A60">:ruby</span>)
@@ -152,7 +152,7 @@ ol.CodeRay li { white-space: pre } <span class="no">16</span> out << tokens.div(<span style="color:#A60">:line_numbers</span> => <span style="color:#A60">:inline</span>, <span style="color:#A60">:line_number_start</span> => <span style="color:#00D; font-weight:bold">8</span>)
<span class="no">17</span>
<span class="no">18</span> puts out.page
-</pre></div>
+</pre></div>
</div>
</body>
diff --git a/demo/demo_html_list.out b/demo/demo_html_list.out index 81a687d..e68ac54 100644 --- a/demo/demo_html_list.out +++ b/demo/demo_html_list.out @@ -1,15 +1,15 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="de">
<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>CodeRay HTML Encoder Example</title>
- <style type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>CodeRay HTML Encoder Example</title>
+ <style type="text/css">
.CodeRay {
- background-color: #f8f8f8;
- border: 1px solid silver;
- font-family: 'Courier New', 'Terminal', monospace;
- color: #100;
+ background-color: #f8f8f8;
+ border: 1px solid silver;
+ font-family: 'Courier New', 'Terminal', monospace;
+ color: #100;
}
.CodeRay pre { margin: 0px }
@@ -21,9 +21,9 @@ table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px } table.CodeRay td { padding: 2px 4px; vertical-align: top }
.CodeRay .line_numbers, .CodeRay .no {
- background-color: #def;
- color: gray;
- text-align: right;
+ background-color: #def;
+ color: gray;
+ text-align: right;
}
.CodeRay .line_numbers tt { font-weight: bold }
.CodeRay .no { padding: 0px 4px }
@@ -110,12 +110,12 @@ ol.CodeRay li { white-space: pre } .CodeRay .v { color:#036 }
.CodeRay .xt { color:#444 }
- </style>
+ </style>
</head>
<body style="background-color: white;">
<div class="CodeRay">
- <div class="code"><pre><span class="no">-1</span> <span class="gv">$:</span> << <span class="s"><span class="dl">'</span><span class="k">..</span><span class="dl">'</span></span>
+ <div class="code"><pre><span class="no">-1</span> <span class="gv">$:</span> << <span class="s"><span class="dl">'</span><span class="k">..</span><span class="dl">'</span></span>
<span class="no"> <strong>0</strong></span> require <span class="s"><span class="dl">'</span><span class="k">coderay</span><span class="dl">'</span></span>
<span class="no"> 1</span>
<span class="no"> 2</span> tokens = <span class="co">CodeRay</span>.scan <span class="co">File</span>.read(<span class="pc">__FILE__</span>), <span class="sy">:ruby</span>
@@ -127,7 +127,7 @@ ol.CodeRay li { white-space: pre } <span class="no"> 8</span> This code must be > 10 lines
<span class="no"> 9</span> because I want to test the correct adjustment of the line numbers.</span><span class="dl">
<span class="no"><strong>10</strong></span> _</span></span>
-</pre></div>
+</pre></div>
</div>
</body>
diff --git a/demo/demo_more.out b/demo/demo_more.out index d960ae7..c9a3cfd 100644 --- a/demo/demo_more.out +++ b/demo/demo_more.out @@ -1,2 +1,2 @@ -Input: 4983B, Output: 22528B
+Input: 4983B, Output: 22546B
Take a look with your browser.
|