diff options
author | murphy <murphy@rubychan.de> | 2005-09-29 04:42:56 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2005-09-29 04:42:56 +0000 |
commit | 97cf6619f565d462c769e0d611affa85a040ef40 (patch) | |
tree | 2cc531543f0b777288ea1319d18c4a52509d1226 /lib | |
parent | 88595a5a3d68f37b8106f755ff8912b046096291 (diff) | |
download | coderay-97cf6619f565d462c769e0d611affa85a040ef40.tar.gz |
coderay.rb: Id added.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/coderay.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb index ea3ddb0..05ef668 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -1,5 +1,7 @@ # = CodeRay # +# $Id$ +# # CodeRay is a Ruby library for syntax highlighting. # # I try to make CodeRay easy to use and intuitive, but at the same time fully featured, complete, @@ -28,7 +30,7 @@ # === Highlight Ruby code in a string as html # # require 'coderay' -# print CodeRay.scan('puts "Hello, world!"', :ruby).compact.html.page +# print CodeRay.scan('puts "Hello, world!"', :ruby).html # # # prints something like this: # puts <span class="s">"Hello, world!"</span> @@ -37,8 +39,8 @@ # === Highlight C code from a file in a html div # # require 'coderay' -# print CodeRay.scan(File.read('ruby.h'), :c).html.div -# # print CodeRay.scan_file('ruby.h').html.div ## not working yet +# print CodeRay.scan(File.read('ruby.h'), :c).div +# print CodeRay.scan_file('ruby.h').html.div # # You can include this div in your page. The used CSS styles can be printed with # @@ -125,7 +127,6 @@ # on creation; you can't re-use them with another string. # # The scanning methods provide more flexibility; we recommend to use these. -# module CodeRay Version = '0.4.4' |