summaryrefslogtreecommitdiff
path: root/sample/html2.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-23 13:29:01 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-23 13:29:01 +0200
commit1d445c70edf8d5c878f9a830dcd29f5a3e179923 (patch)
tree75ad0b7db37981acd3bf54984353e70229e351ad /sample/html2.rb
parentd9d6dd5f4a73363ea5d353ecda142f77ed4eba5a (diff)
parent1e330f16c21c45eff375ba3b12f966c76ba0b393 (diff)
downloadcoderay-1d445c70edf8d5c878f9a830dcd29f5a3e179923.tar.gz
Merge branch 'master' into upstream
Diffstat (limited to 'sample/html2.rb')
-rw-r--r--sample/html2.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/sample/html2.rb b/sample/html2.rb
deleted file mode 100644
index 618d168..0000000
--- a/sample/html2.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'coderay'
-
-# scan this file
-tokens = CodeRay.scan(File.read($0) * 1, :ruby)
-
-# output it with two styles of line numbers
-out = tokens.div(:line_numbers => :table)
-out << '<hr />'
-out << tokens.div(:line_numbers => :inline, :line_number_start => 8)
-
-puts out.page(:title => 'CodeRay HTML Encoder Example')