git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10131
e93f8b46-1217-0410-a6f0-
8f06a7374b81
# Highlights +text+ using +language+ syntax
# Should not return outer pre tag
def highlight_by_language(text, language)
- ::CodeRay.scan(text, language).html(:line_numbers => :inline, :line_number_anchors => false, :wrap => :span)
+ ::CodeRay.scan(text, language).html(:wrap => :span)
end
end
end
RAW
expected = <<-EXPECTED
-<pre><code class="ruby syntaxhl"><span class=\"CodeRay\"><span class="line-numbers">1</span><span class="comment"># Some ruby code here</span></span>
+<pre><code class="ruby syntaxhl"><span class=\"CodeRay\"><span class="comment"># Some ruby code here</span></span>
</code></pre>
EXPECTED