File: src-code-list-coderay.html

package info (click to toggle)
ruby-org 0.9.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,852 kB
  • sloc: ruby: 3,044; lisp: 50; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 1,156 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<h1>begin src in lists should work</h1>
<ul>
  <li>Foo
    <pre class="src" lang="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>
  </li>
  <li>Bar
    <pre class="src" lang="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" lang="sh">
echo &quot;Hello&quot;
        </pre>
        <p>And this is a paragraph</p>
      </li>
    </ul>
  </li>
  <li>Hello</li>
</ul>