Skip to content
Browse files

Code syntax highlight examples corrected.

  • Loading branch information...
1 parent 0ed172a commit 7d7a2d3ade08bf69297dd66241d9c6e1020ecb6a @vonavi committed Dec 20, 2012
View
68 spec/html_code_syntax_highlight_examples/advanced-code-coderay.html
@@ -1,7 +1,11 @@
-<p class="title">advanced-code-coderay.org</p>
-<p>Turns out there&#8217;s more way to do code than just BEGIN_EXAMPLE.</p>
-<h1><span class="heading-number heading-number-1">1 </span>Inline examples</h1>
-<p>This should work:</p>
+<p class="title">advanced-code-coderay.org
+</p>
+<p>Turns out there&#8217;s more way to do code than just BEGIN_EXAMPLE.
+</p>
+<h1><span class="heading-number heading-number-1">1 </span>Inline examples
+</h1>
+<p>This should work:
+</p>
<pre class="example">
fixed width? how does this work?
...........
@@ -13,9 +17,12 @@
. .
....
</pre>
-<p>Two ASCII blobs.</p>
-<h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC</h1>
-<p>And this:</p>
+<p>Two ASCII blobs.
+</p>
+<h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC
+</h1>
+<p>And this:
+</p>
<pre class="src src-ruby">
<span style="color:#777"># Finds all emphasis matches in a string.</span>
<span style="color:#777"># Supply a block that will get the marker and body as parameters.</span>
@@ -25,7 +32,8 @@
<span style="color:#080;font-weight:bold">end</span>
<span style="color:#080;font-weight:bold">end</span>
</pre>
-<p>Now let&#8217;s test case-insensitive code blocks.</p>
+<p>Now let&#8217;s test case-insensitive code blocks.
+</p>
<pre class="src src-ruby">
<span style="color:#777"># Finds all emphasis matches in a string.</span>
<span style="color:#777"># Supply a block that will get the marker and body as parameters.</span>
@@ -45,13 +53,18 @@
user&gt; (<span style="color:#080;font-weight:bold">take</span> <span style="color:#00D">20</span> fib-seq)
(<span style="color:#00D">0</span> <span style="color:#00D">1</span> <span style="color:#00D">1</span> <span style="color:#00D">2</span> <span style="color:#00D">3</span> <span style="color:#00D">5</span> <span style="color:#00D">8</span> <span style="color:#00D">13</span> <span style="color:#00D">21</span> <span style="color:#00D">34</span> <span style="color:#00D">55</span> <span style="color:#00D">89</span> <span style="color:#00D">144</span> <span style="color:#00D">233</span> <span style="color:#00D">377</span> <span style="color:#00D">610</span> <span style="color:#00D">987</span> <span style="color:#00D">1597</span> <span style="color:#00D">2584</span> <span style="color:#00D">4181</span>)
</pre>
-<p>Even if no language is set, it is still wrapped in code tags but class is empty.</p>
+<p>Even if no language is set, it is still wrapped in code tags but class is empty.
+</p>
<pre class="src">
echo 'Defaults env_keeps=&quot;http_proxy https_proxy ftp_proxy&quot;' | sudo tee -a /etc/sudoers
</pre>
-<h1><span class="heading-number heading-number-1">3 </span>It should be possible to write a colon at the beginning of an example</h1>
+<h1><span class="heading-number heading-number-1">3 </span>It should be possible to write a colon at the beginning of an example
+</h1>
<blockquote>
- <p>I really love to write about :symbols. They sure are the best things in the world!</p>
+ <p>I really love to write about
+:symbols. They sure are the
+best things in the world!
+ </p>
</blockquote>
<pre class="src src-ruby">
{
@@ -67,12 +80,15 @@
<span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">1.0-SNAPSHOT</span><span style="color:#710">&quot;</span></span>]]
<span style="color:#A60">:main</span> helloworld)
</pre>
-<h1><span class="heading-number heading-number-1">4 </span>Code syntax highlight with Coderay</h1>
-<h2><span class="heading-number heading-number-2">4.1 </span>No language selected</h2>
+<h1><span class="heading-number heading-number-1">4 </span>Code syntax highlight with Coderay
+</h1>
+<h2><span class="heading-number heading-number-2">4.1 </span>No language selected
+</h2>
<pre class="src">
Nothing to see here
</pre>
-<h2><span class="heading-number heading-number-2">4.2 </span>CSS example</h2>
+<h2><span class="heading-number heading-number-2">4.2 </span>CSS example
+</h2>
<pre class="src src-css">
<span style="color:#339;font-weight:bold">*</span> {
<span style="color:#777">/* apply a natural box layout model to all elements */</span>
@@ -81,7 +97,8 @@
<span style="color:#606">-webkit-box-sizing</span>: <span style="color:#088">border-box</span>;
}
</pre>
-<h2><span class="heading-number heading-number-2">4.3 </span>HTML example</h2>
+<h2><span class="heading-number heading-number-2">4.3 </span>HTML example
+</h2>
<pre class="src src-html">
<span style="color:#070">&lt;html&gt;</span>
<span style="color:#070">&lt;head&gt;</span>
@@ -92,22 +109,25 @@
<span style="color:#070">&lt;/body&gt;</span>
<span style="color:#070">&lt;/html&gt;</span>
</pre>
-<h2><span class="heading-number heading-number-2">4.4 </span>Ruby example</h2>
+<h2><span class="heading-number heading-number-2">4.4 </span>Ruby example
+</h2>
<pre class="src src-ruby">
<span style="color:#080;font-weight:bold">class</span> <span style="color:#B06;font-weight:bold">Post</span> &lt;&lt; <span style="color:#036;font-weight:bold">ActiveRecord</span>::<span style="color:#036;font-weight:bold">Base</span>
<span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">print_title</span>
puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="background-color:hsla(0,0%,0%,0.07);color:black"><span style="font-weight:bold;color:#666">#{</span><span style="color:#069">self</span>.title<span style="font-weight:bold;color:#666">}</span></span><span style="color:#710">&quot;</span></span>
<span style="color:#080;font-weight:bold">end</span>
<span style="color:#080;font-weight:bold">end</span>
</pre>
-<h2><span class="heading-number heading-number-2">4.5 </span>Python example</h2>
+<h2><span class="heading-number heading-number-2">4.5 </span>Python example
+</h2>
<pre class="src src-python">
<span style="color:#080;font-weight:bold">import</span> <span style="color:#B44;font-weight:bold">mapnik</span>
m = mapnik.Map(<span style="color:#00D">600</span>, <span style="color:#00D">800</span>)
m.background = Map.Color(<span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">steelblue</span><span style="color:#710">'</span></span>)
</pre>
-<h2><span class="heading-number heading-number-2">4.6 </span>Javascript example</h2>
+<h2><span class="heading-number heading-number-2">4.6 </span>Javascript example
+</h2>
<pre class="src src-javascript">
exports = <span style="color:#963">this</span>;
@@ -121,25 +141,29 @@
})(jQuery);
</pre>
-<h2><span class="heading-number heading-number-2">4.7 </span>JSON example</h2>
+<h2><span class="heading-number heading-number-2">4.7 </span>JSON example
+</h2>
<pre class="src src-json">
{ <span style="color:#F00;background-color:#FAA">n</span><span style="color:#F00;background-color:#FAA">a</span><span style="color:#F00;background-color:#FAA">m</span><span style="color:#F00;background-color:#FAA">e</span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Waldemar</span><span style="color:#710">&quot;</span></span>
, <span style="color:#F00;background-color:#FAA">s</span><span style="color:#F00;background-color:#FAA">u</span><span style="color:#F00;background-color:#FAA">r</span><span style="color:#F00;background-color:#FAA">n</span><span style="color:#F00;background-color:#FAA">a</span><span style="color:#F00;background-color:#FAA">m</span><span style="color:#F00;background-color:#FAA">e</span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Quevedo</span><span style="color:#710">&quot;</span></span>
}
</pre>
-<h2><span class="heading-number heading-number-2">4.8 </span>PHP example</h2>
+<h2><span class="heading-number heading-number-2">4.8 </span>PHP example
+</h2>
<pre class="src src-php">
<span style="color:#369;font-weight:bold">echo</span> <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello</span><span style="color:#710">&quot;</span></span>;
<span style="color:#369;font-weight:bold">phpinfo</span>();
<span style="color:#369;font-weight:bold">var_dump</span>(some_var);
</pre>
-<h2><span class="heading-number heading-number-2">4.9 </span>Elisp example</h2>
+<h2><span class="heading-number heading-number-2">4.9 </span>Elisp example
+</h2>
<pre class="src src-emacs-lisp">
(defun hello()
(interactive)
(message &quot;hello&quot;))
</pre>
-<h2><span class="heading-number heading-number-2">4.10 </span>Not supported language example</h2>
+<h2><span class="heading-number heading-number-2">4.10 </span>Not supported language example
+</h2>
<pre class="src src-notsupported">
!+!+++!++!++!++!+
</pre>
View
35 spec/html_code_syntax_highlight_examples/advanced-code-no-color.html
@@ -1,7 +1,11 @@
-<p class="title">advanced-code.org</p>
-<p>Turns out there&#8217;s more way to do code than just BEGIN_EXAMPLE.</p>
-<h1><span class="heading-number heading-number-1">1 </span>Inline examples</h1>
-<p>This should work:</p>
+<p class="title">advanced-code.org
+</p>
+<p>Turns out there&#8217;s more way to do code than just BEGIN_EXAMPLE.
+</p>
+<h1><span class="heading-number heading-number-1">1 </span>Inline examples
+</h1>
+<p>This should work:
+</p>
<pre class="example">
fixed width? how does this work?
...........
@@ -13,9 +17,12 @@
. .
....
</pre>
-<p>Two ASCII blobs.</p>
-<h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC</h1>
-<p>And this:</p>
+<p>Two ASCII blobs.
+</p>
+<h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC
+</h1>
+<p>And this:
+</p>
<pre class="src src-ruby">
# Finds all emphasis matches in a string.
# Supply a block that will get the marker and body as parameters.
@@ -25,7 +32,8 @@
end
end
</pre>
-<p>Now let&#8217;s test case-insensitive code blocks.</p>
+<p>Now let&#8217;s test case-insensitive code blocks.
+</p>
<pre class="src src-ruby">
# Finds all emphasis matches in a string.
# Supply a block that will get the marker and body as parameters.
@@ -45,13 +53,18 @@
user&gt; (take 20 fib-seq)
(0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181)
</pre>
-<p>Even if no language is set, it is still wrapped in code tags but class is empty.</p>
+<p>Even if no language is set, it is still wrapped in code tags but class is empty.
+</p>
<pre class="src">
echo 'Defaults env_keeps="http_proxy https_proxy ftp_proxy"' | sudo tee -a /etc/sudoers
</pre>
-<h1><span class="heading-number heading-number-1">3 </span>It should be possible to write a colon at the beginning of an example</h1>
+<h1><span class="heading-number heading-number-1">3 </span>It should be possible to write a colon at the beginning of an example
+</h1>
<blockquote>
- <p>I really love to write about :symbols. They sure are the best things in the world!</p>
+ <p>I really love to write about
+:symbols. They sure are the
+best things in the world!
+ </p>
</blockquote>
<pre class="src src-ruby">
{
View
91 spec/html_code_syntax_highlight_examples/advanced-code-pygments.html
@@ -1,7 +1,11 @@
-<p class="title">advanced-code.org</p>
-<p>Turns out there&#8217;s more way to do code than just BEGIN_EXAMPLE.</p>
-<h1><span class="heading-number heading-number-1">1 </span>Inline examples</h1>
-<p>This should work:</p>
+<p class="title">advanced-code.org
+</p>
+<p>Turns out there&#8217;s more way to do code than just BEGIN_EXAMPLE.
+</p>
+<h1><span class="heading-number heading-number-1">1 </span>Inline examples
+</h1>
+<p>This should work:
+</p>
<pre class="example">
fixed width? how does this work?
...........
@@ -13,59 +17,80 @@
. .
....
</pre>
-<p>Two ASCII blobs.</p>
-<h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC</h1>
-<p>And this:</p>
+<p>Two ASCII blobs.
+</p>
+<h1><span class="heading-number heading-number-1">2 </span>BEGIN_SRC
+</h1>
+<p>And this:
+</p>
<div class="highlight"><pre> <span class="c1"># Finds all emphasis matches in a string.</span>
<span class="c1"># Supply a block that will get the marker and body as parameters.</span>
<span class="k">def</span> <span class="nf">match_all</span><span class="p">(</span><span class="n">str</span><span class="p">)</span>
<span class="n">str</span><span class="o">.</span><span class="n">scan</span><span class="p">(</span><span class="vi">@org_emphasis_regexp</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">match</span><span class="o">|</span>
<span class="k">yield</span> <span class="vg">$2</span><span class="p">,</span> <span class="vg">$3</span>
<span class="k">end</span>
<span class="k">end</span>
-</pre></div><p>Now let&#8217;s test case-insensitive code blocks.</p>
+</pre></div>
+<p>Now let&#8217;s test case-insensitive code blocks.
+</p>
<div class="highlight"><pre> <span class="c1"># Finds all emphasis matches in a string.</span>
<span class="c1"># Supply a block that will get the marker and body as parameters.</span>
<span class="k">def</span> <span class="nf">match_all</span><span class="p">(</span><span class="n">str</span><span class="p">)</span>
<span class="n">str</span><span class="o">.</span><span class="n">scan</span><span class="p">(</span><span class="vi">@org_emphasis_regexp</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">match</span><span class="o">|</span>
<span class="k">yield</span> <span class="vg">$2</span><span class="p">,</span> <span class="vg">$3</span>
<span class="k">end</span>
<span class="k">end</span>
-</pre></div><div class="highlight"><pre><span class="p">(</span><span class="k">def </span><span class="nv">fib-seq</span>
+</pre></div>
+<div class="highlight"><pre><span class="p">(</span><span class="k">def </span><span class="nv">fib-seq</span>
<span class="p">(</span><span class="nf">concat</span>
<span class="p">[</span><span class="mi">0</span> <span class="mi">1</span><span class="p">]</span>
<span class="p">((</span><span class="k">fn </span><span class="nv">rfib</span> <span class="p">[</span><span class="nv">a</span> <span class="nv">b</span><span class="p">]</span>
<span class="p">(</span><span class="nb">lazy-cons </span><span class="p">(</span><span class="nb">+ </span><span class="nv">a</span> <span class="nv">b</span><span class="p">)</span> <span class="p">(</span><span class="nf">rfib</span> <span class="nv">b</span> <span class="p">(</span><span class="nb">+ </span><span class="nv">a</span> <span class="nv">b</span><span class="p">))))</span> <span class="mi">0</span> <span class="mi">1</span><span class="p">)))</span>
<span class="nv">user&gt;</span> <span class="p">(</span><span class="nb">take </span><span class="mi">20</span> <span class="nv">fib-seq</span><span class="p">)</span>
<span class="p">(</span><span class="mi">0</span> <span class="mi">1</span> <span class="mi">1</span> <span class="mi">2</span> <span class="mi">3</span> <span class="mi">5</span> <span class="mi">8</span> <span class="mi">13</span> <span class="mi">21</span> <span class="mi">34</span> <span class="mi">55</span> <span class="mi">89</span> <span class="mi">144</span> <span class="mi">233</span> <span class="mi">377</span> <span class="mi">610</span> <span class="mi">987</span> <span class="mi">1597</span> <span class="mi">2584</span> <span class="mi">4181</span><span class="p">)</span>
-</pre></div><p>Even if no language is set, it is still wrapped in code tags but class is empty.</p>
+</pre></div>
+<p>Even if no language is set, it is still wrapped in code tags but class is empty.
+</p>
<div class="highlight"><pre>echo &#39;Defaults env_keeps=&quot;http_proxy https_proxy ftp_proxy&quot;&#39; | sudo tee -a /etc/sudoers
-</pre></div><h1><span class="heading-number heading-number-1">3 </span>It should be possible to write a colon at the beginning of an example</h1>
+</pre></div>
+<h1><span class="heading-number heading-number-1">3 </span>It should be possible to write a colon at the beginning of an example
+</h1>
<blockquote>
- <p>I really love to write about :symbols. They sure are the best things in the world!</p>
+ <p>I really love to write about
+:symbols. They sure are the
+best things in the world!
+ </p>
</blockquote>
<div class="highlight"><pre><span class="p">{</span>
<span class="ss">:one</span> <span class="o">=&gt;</span> <span class="mi">1</span><span class="p">,</span>
<span class="ss">:two</span> <span class="o">=&gt;</span> <span class="mi">2</span>
<span class="p">}</span>
-</pre></div><div class="highlight"><pre><span class="p">(</span><span class="kd">defproject </span><span class="nv">helloworld</span> <span class="s">&quot;0.1&quot;</span>
+</pre></div>
+<div class="highlight"><pre><span class="p">(</span><span class="kd">defproject </span><span class="nv">helloworld</span> <span class="s">&quot;0.1&quot;</span>
<span class="ss">:dependencies</span> <span class="p">[[</span><span class="nv">org.clojure/clojure</span>
<span class="s">&quot;1.1.0-master-SNAPSHOT&quot;</span><span class="p">]</span>
<span class="p">[</span><span class="nv">org.clojure/clojure-contrib</span>
<span class="s">&quot;1.0-SNAPSHOT&quot;</span><span class="p">]]</span>
<span class="ss">:main</span> <span class="nv">helloworld</span><span class="p">)</span>
-</pre></div><h1><span class="heading-number heading-number-1">4 </span>Code syntax highlight with Pygments</h1>
-<h2><span class="heading-number heading-number-2">4.1 </span>No language selected</h2>
+</pre></div>
+<h1><span class="heading-number heading-number-1">4 </span>Code syntax highlight with Pygments
+</h1>
+<h2><span class="heading-number heading-number-2">4.1 </span>No language selected
+</h2>
<div class="highlight"><pre>&lt;script&gt;alert(&#39;hello world&#39;)&lt;/script&gt;
-</pre></div><h2><span class="heading-number heading-number-2">4.2 </span>CSS example</h2>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.2 </span>CSS example
+</h2>
<div class="highlight"><pre> <span class="o">*</span> <span class="p">{</span>
<span class="c">/* apply a natural box layout model to all elements */</span>
<span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span>
<span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span>
<span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">box</span><span class="o">-</span><span class="n">sizing</span><span class="o">:</span> <span class="k">border</span><span class="o">-</span><span class="n">box</span><span class="p">;</span>
<span class="p">}</span>
-</pre></div><h2><span class="heading-number heading-number-2">4.3 </span>HTML example</h2>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.3 </span>HTML example
+</h2>
<div class="highlight"><pre><span class="nt">&lt;html&gt;</span>
<span class="nt">&lt;head&gt;</span>
<span class="nt">&lt;title&gt;</span>Hello<span class="nt">&lt;/title&gt;</span>
@@ -74,18 +99,24 @@
<span class="nt">&lt;h1&gt;</span>Hello<span class="nt">&lt;/h1&gt;</span>
<span class="nt">&lt;/body&gt;</span>
<span class="nt">&lt;/html&gt;</span>
-</pre></div><h2><span class="heading-number heading-number-2">4.4 </span>Ruby example</h2>
-<div class="highlight"><pre><span class="k">class</span> <span class="nc">Post</span> <span class="o">&lt;&lt;</span> <span class="no">ActiveRecord</span><span class="o">::</span><span class="no">Base</span>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.4 </span>Ruby example
+</h2>
+<div class="highlight"><pre><span class="k">class</span> <span class="nc">Post</span> <span class="o">&lt;&lt;</span> <span class="ss">ActiveRecord</span><span class="p">:</span><span class="ss">:Base</span>
<span class="k">def</span> <span class="nf">print_title</span>
<span class="nb">puts</span> <span class="s2">&quot;</span><span class="si">#{</span><span class="nb">self</span><span class="o">.</span><span class="n">title</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="k">end</span>
<span class="k">end</span>
-</pre></div><h2><span class="heading-number heading-number-2">4.5 </span>Python example</h2>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.5 </span>Python example
+</h2>
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">mapnik</span>
<span class="n">m</span> <span class="o">=</span> <span class="n">mapnik</span><span class="o">.</span><span class="n">Map</span><span class="p">(</span><span class="mi">600</span><span class="p">,</span> <span class="mi">800</span><span class="p">)</span>
<span class="n">m</span><span class="o">.</span><span class="n">background</span> <span class="o">=</span> <span class="n">Map</span><span class="o">.</span><span class="n">Color</span><span class="p">(</span><span class="s">&#39;steelblue&#39;</span><span class="p">)</span>
-</pre></div><h2><span class="heading-number heading-number-2">4.6 </span>Javascript example</h2>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.6 </span>Javascript example
+</h2>
<div class="highlight"><pre><span class="nx">exports</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span>
<span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">$</span><span class="p">){</span>
@@ -97,18 +128,26 @@
<span class="p">};</span>
<span class="p">})(</span><span class="nx">jQuery</span><span class="p">);</span>
-</pre></div><h2><span class="heading-number heading-number-2">4.7 </span>JSON example</h2>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.7 </span>JSON example
+</h2>
<div class="highlight"><pre><span class="p">{</span> <span class="err">name:</span> <span class="nt">&quot;Waldemar&quot;</span>
<span class="p">,</span> <span class="err">surname:</span> <span class="nt">&quot;Quevedo&quot;</span>
<span class="p">}</span>
-</pre></div><h2><span class="heading-number heading-number-2">4.8 </span>PHP example</h2>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.8 </span>PHP example
+</h2>
<div class="highlight"><pre><span class="x">echo &quot;Hello&quot;;</span>
<span class="x">phpinfo();</span>
<span class="x">var_dump(some_var);</span>
-</pre></div><h2><span class="heading-number heading-number-2">4.9 </span>Elisp example</h2>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.9 </span>Elisp example
+</h2>
<div class="highlight"><pre><span class="p">(</span><span class="nf">defun</span> <span class="nv">hello</span><span class="p">()</span>
<span class="p">(</span><span class="nf">interactive</span><span class="p">)</span>
<span class="p">(</span><span class="nf">message</span> <span class="s">&quot;hello&quot;</span><span class="p">))</span>
-</pre></div><h2><span class="heading-number heading-number-2">4.10 </span>Not supported language example</h2>
+</pre></div>
+<h2><span class="heading-number heading-number-2">4.10 </span>Not supported language example
+</h2>
<div class="highlight"><pre>!+!+++!++!++!++!+
-</pre></div>
+</pre></div>
View
3 spec/html_code_syntax_highlight_examples/code-coderay.html
@@ -1,4 +1,5 @@
-<h1 class="title">Simple Code Syntax highlighting test</h1>
+<h1 class="title">Simple Code Syntax highlighting test
+</h1>
<pre class="src src-ruby">
<span style="color:#080;font-weight:bold">class</span> <span style="color:#B06;font-weight:bold">Coderay</span>
<span style="color:#080;font-weight:bold">class</span> &lt;&lt; <span style="color:#B06;font-weight:bold">self</span>
View
9 spec/html_code_syntax_highlight_examples/code-no-color.html
@@ -1,4 +1,5 @@
-<h1 class="title">Simple Code Syntax highlighting test</h1>
+<h1 class="title">Simple Code Syntax highlighting test
+</h1>
<pre class="src src-ruby">
class Pygments
class &lt;&lt; self
@@ -11,13 +12,15 @@ <h1 class="title">Simple Code Syntax highlighting test</h1>
end
end
</pre>
-<p>Now using EXAMPLE blocks instead:</p>
+<p>Now using EXAMPLE blocks instead:
+</p>
<pre class="example">
def hello()
puts "hello"
end
</pre>
-<p>Small case should work as well:</p>
+<p>Small case should work as well:
+</p>
<pre class="example">
class Hello
def say
View
12 spec/html_code_syntax_highlight_examples/code-pygments.html
@@ -1,4 +1,5 @@
-<h1 class="title">Simple Code Syntax highlighting test</h1>
+<h1 class="title">Simple Code Syntax highlighting test
+</h1>
<div class="highlight"><pre><span class="k">class</span> <span class="nc">Pygments</span>
<span class="k">class</span> <span class="o">&lt;&lt;</span> <span class="nb">self</span>
<span class="k">def</span> <span class="nf">colorize</span>
@@ -9,13 +10,16 @@ <h1 class="title">Simple Code Syntax highlighting test</h1>
<span class="k">end</span>
<span class="k">end</span>
<span class="k">end</span>
-</pre></div><p>Now using EXAMPLE blocks instead:</p>
+</pre></div>
+<p>Now using EXAMPLE blocks instead:
+</p>
<pre class="example">
def hello()
puts "hello"
end
</pre>
-<p>Small case should work as well:</p>
+<p>Small case should work as well:
+</p>
<pre class="example">
class Hello
def say
@@ -28,4 +32,4 @@ <h1 class="title">Simple Code Syntax highlighting test</h1>
<span class="c1"># TODO</span>
<span class="k">end</span>
<span class="k">end</span>
-</pre></div>
+</pre></div>
View
29 spec/html_code_syntax_highlight_examples/src-code-list-coderay.html
@@ -1,27 +1,30 @@
-<h1 class="title">begin src in lists should work</h1>
+<h1 class="title">begin src in lists should work
+</h1>
<ul>
<li>Foo
- <pre class="src src-ruby">
+ <pre class="src src-ruby">
<span style="color:#080;font-weight:bold">class</span> <span style="color:#B06;font-weight:bold">Hello</span>
<span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">say</span>
puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">cheers</span><span style="color:#710">'</span></span>
<span style="color:#080;font-weight:bold">end</span>
<span style="color:#080;font-weight:bold">end</span>
- </pre>
+ </pre>
</li>
<li>Bar
- <pre class="src src-ruby">
+ <pre class="src src-ruby">
puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">This should not get lumped into the above line Example</span><span style="color:#710">&quot;</span></span>
- </pre>
- <p>A paragraph should go here.</p>
- <ul>
- <li>A sublist goes here with another example
- <pre class="src src-sh">
- echo &quot;Hello&quot;
</pre>
- <p>And this is a paragraph</p>
- </li>
- </ul>
+ <p>A paragraph should go here.
+ </p>
+ <ul>
+ <li>A sublist goes here with another example
+ <pre class="src src-sh">
+ echo &quot;Hello&quot;
+ </pre>
+ <p>And this is a paragraph
+ </p>
+ </li>
+ </ul>
</li>
<li>Hello
</li>
View
29 spec/html_code_syntax_highlight_examples/src-code-list-no-color.html
@@ -1,27 +1,30 @@
-<h1 class="title">begin src in lists should work</h1>
+<h1 class="title">begin src in lists should work
+</h1>
<ul>
<li>Foo
- <pre class="src src-ruby">
+ <pre class="src src-ruby">
class Hello
def say
puts 'cheers'
end
end
- </pre>
+ </pre>
</li>
<li>Bar
- <pre class="src src-ruby">
+ <pre class="src src-ruby">
puts "This should not get lumped into the above line Example"
- </pre>
- <p>A paragraph should go here.</p>
- <ul>
- <li>A sublist goes here with another example
- <pre class="src src-sh">
- echo "Hello"
</pre>
- <p>And this is a paragraph</p>
- </li>
- </ul>
+ <p>A paragraph should go here.
+ </p>
+ <ul>
+ <li>A sublist goes here with another example
+ <pre class="src src-sh">
+ echo "Hello"
+ </pre>
+ <p>And this is a paragraph
+ </p>
+ </li>
+ </ul>
</li>
<li>Hello
</li>
View
28 spec/html_code_syntax_highlight_examples/src-code-list-pygments.html
@@ -1,21 +1,27 @@
-<h1 class="title">begin src in lists should work</h1>
+<h1 class="title">begin src in lists should work
+</h1>
<ul>
<li>Foo
- <div class="highlight"><pre> <span class="k">class</span> <span class="nc">Hello</span>
+<div class="highlight"><pre> <span class="k">class</span> <span class="nc">Hello</span>
<span class="k">def</span> <span class="nf">say</span>
<span class="nb">puts</span> <span class="s1">&#39;cheers&#39;</span>
<span class="k">end</span>
<span class="k">end</span>
-</pre></div> </li>
+</pre></div>
+ </li>
<li>Bar
- <div class="highlight"><pre> <span class="nb">puts</span> <span class="s2">&quot;This should not get lumped into the above line Example&quot;</span>
-</pre></div> <p>A paragraph should go here.</p>
- <ul>
- <li>A sublist goes here with another example
- <div class="highlight"><pre> <span class="nb">echo</span> <span class="s2">&quot;Hello&quot;</span>
-</pre></div> <p>And this is a paragraph</p>
- </li>
- </ul>
+<div class="highlight"><pre> <span class="nb">puts</span> <span class="s2">&quot;This should not get lumped into the above line Example&quot;</span>
+</pre></div>
+ <p>A paragraph should go here.
+ </p>
+ <ul>
+ <li>A sublist goes here with another example
+<div class="highlight"><pre> <span class="nb">echo</span> <span class="s2">&quot;Hello&quot;</span>
+</pre></div>
+ <p>And this is a paragraph
+ </p>
+ </li>
+ </ul>
</li>
<li>Hello
</li>

0 comments on commit 7d7a2d3

Please sign in to comment.
Something went wrong with that request. Please try again.