summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2005-11-04 00:16:58 +0000
committermurphy <murphy@rubychan.de>2005-11-04 00:16:58 +0000
commit7371093d78689728c1bf8326987c24f73864edb2 (patch)
tree5707450828c5f8f816413b0a64e35d56c9fafec2 /bench
parent4d5b6c59075ea5435a8ac1879453f21247b38604 (diff)
downloadcoderay-7371093d78689728c1bf8326987c24f73864edb2.tar.gz
HTML highlighting:
html_css.rb: Bugfixes CSS style scanning went for wrong range moved some styles into the right place html_output.rb: numerization excluded templates renamed new LIST template html_numerization.rb (new): new :line_numbers style :list (beta) Benchmarking: Split Options into lines :list style for testing
Diffstat (limited to 'bench')
-rw-r--r--bench/bench.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/bench/bench.rb b/bench/bench.rb
index f705258..10308ce 100644
--- a/bench/bench.rb
+++ b/bench/bench.rb
@@ -77,7 +77,14 @@ Benchmark.bm(20) do |bm|
end
time = bm.report('CodeRay') do
- options = { :tab_width => 2, :line_numbers => :table, :line_numbers_offset => Offset, :bold_every => BoldEvery, :wrap => :page, :css => $style ? :style : :class}
+ options = {
+ :tab_width => 2,
+ :line_numbers => :list,
+ :line_numbers_offset => Offset,
+ :bold_every => BoldEvery,
+ :wrap => :page,
+ :css => $style ? :style : :class,
+ }
options[:debug] = $DEBUG
$hl = CodeRay.encoder(format, options) unless $dump_output
N.times do