Ruby语法高亮库 Coderay

码农软件 · 软件分类 · 其他开发相关 · 2019-11-01 22:12:26

软件介绍

CodeRay是一个语法高亮的Ruby库,效率很不错。

CodeRay目前支持的语法包括:

  1. Ruby
  2. C
  3. Delphi
  4. HTML
  5. RHTML (Rails)
  6. Nitro-XHTML
  7. YAML
  8. SQL
  9. Python
  10. Perl
  11. PHP
  12. 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)

本文地址:https://codercto.com/soft/d/18069.html

Neural Networks for Applied Sciences and Engineering

Neural Networks for Applied Sciences and Engineering

Samarasinghe, Sandhya / CRC Pr I Llc / 2006-9 / $ 118.59

In response to the exponentially increasing need to analyze vast amounts of data, Neural Networks for Applied Sciences and Engineering: From Fundamentals to Complex Pattern Recognition provides scient......一起来看看 《Neural Networks for Applied Sciences and Engineering》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

随机密码生成器
随机密码生成器

多种字符组合密码

MD5 加密
MD5 加密

MD5 加密工具