Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fast and easy syntax highlighting for selected languages, written in Ruby.

NotificationsYou must be signed in to change notification settings

rubychan/coderay

 
 

Repository files navigation

Build StatusGem VersionMaintainability

About

CodeRay is a Ruby library for syntax highlighting.

You put your code in, and you get it back colored; Keywords, strings, floats, comments - all in different colors. And with line numbers.

Installation

gem install coderay

Dependencies

CodeRay needs Ruby 1.8.7, 1.9.3 or 2.0+. It also runs on JRuby.

Example Usage

require'coderay'html=CodeRay.scan("puts 'Hello, world!'",:ruby).div(:line_numbers=>:table)

Documentation

Seerubydoc.

About

Fast and easy syntax highlighting for selected languages, written in Ruby.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors22

Languages


[8]ページ先頭

©2009-2025 Movatter.jp