- 授权协议: 未知
- 开发语言: Ruby
- 操作系统: 跨平台
- 软件首页: http://coderay.rubychan.de/
- 软件文档: http://coderay.rubychan.de/doc/
软件介绍
CodeRay是一个语法高亮的Ruby库,效率很不错。
CodeRay目前支持的语法包括:
- Ruby
- C
- Delphi
- HTML
- RHTML (Rails)
- Nitro-XHTML
- YAML
- SQL
- Python
- Perl
- PHP
- Java
安装方法:gem install coderay
示例代码:
require 'rubygems'
require 'coderay'
tokens = CodeRay.scan <<-'CODE', :ruby
puts %[Hello, world!]
puts "Here\'s some #@@weird #{ { :code => "for you" } }"
CODE
print tokens.div(:line_numbers => :table, :css => :class)
Release It!
Michael T. Nygard / Pragmatic Bookshelf / 2007-03-30 / USD 34.95
“Feature complete” is not the same as “production ready.” Whether it’s in Java, .NET, or Ruby on Rails, getting your application ready to ship is only half the battle. Did you design your system to......一起来看看 《Release It!》 这本书的介绍吧!
