summaryrefslogtreecommitdiff
path: root/sample/demo_html_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/demo_html_list.rb')
-rw-r--r--sample/demo_html_list.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/sample/demo_html_list.rb b/sample/demo_html_list.rb
new file mode 100644
index 0000000..97724f2
--- /dev/null
+++ b/sample/demo_html_list.rb
@@ -0,0 +1,12 @@
+$: << '..'
+require 'coderay'
+
+tokens = CodeRay.scan File.read(__FILE__), :ruby
+html = tokens.html(:tab_width => 2, :line_numbers => :inline, :line_number_start => -1)
+
+puts html.page
+
+commment = <<_
+This code must be > 10 lines
+because I want to test the correct adjustment of the line numbers.
+_