Fast and easy syntax highlighting for selected languages, written in Ruby. https://github.com/rubychan/coderay
Go to file
Kornelius Kalnbach f71b25d311
add missing badge token
2022-11-13 20:59:43 +01:00
.circleci add CircleCI config 2022-11-13 20:51:56 +01:00
bench don't change benchmark rules 2017-09-03 11:07:04 +02:00
bin don't lie in --help output; thanks @Quintus 2015-04-22 00:57:21 +02:00
lib bump version 2020-05-30 09:20:17 +02:00
rake_tasks disable specs for Ruby 1.8.7 2019-11-24 16:54:03 +01:00
spec merge coverage 2019-11-24 17:18:35 +01:00
test Fix test suite for ruby 3.0 change for methods on subclass of Array 2021-02-21 23:04:03 +09:00
.codeclimate.yml tunr off maintainability checks 2019-11-24 15:16:26 +01:00
.gitignore backport .gitignore from dsl branch 2017-11-03 00:41:37 +01:00
.rubocop.yml tweaks to RuboCop config 2019-11-24 15:00:27 +01:00
.rubocop_todo.yml enforce UselessAccessModifier 2019-11-24 15:31:40 +01:00
.simplecov merge coverage 2019-11-24 17:18:35 +01:00
.travis.yml add latest Rubies to test matrix 2022-11-13 20:30:17 +01:00
CREDITS.textile move credits into CREDITS.textile 2013-03-10 20:48:07 +01:00
Changes-pre-1.0.textile update redmine.rubychan.de links to odd-eyed-code.org 2011-10-26 13:03:07 +02:00
Changes.textile add changelog 2020-05-30 07:58:35 +02:00
FOLDERS revert some changes not related to #195 2016-06-02 18:58:26 +02:00
Gemfile fix simplecov for Ruby 2.7 2020-05-30 09:39:12 +02:00
MIT-LICENSE Update MIT-LICENSE 2020-06-24 10:44:07 +02:00
README.markdown add missing badge token 2022-11-13 20:59:43 +01:00
README_INDEX.rdoc Please, Github, use README.textile. 2011-08-19 04:15:07 +02:00
Rakefile cleanup 2013-08-30 17:11:46 +02:00
coderay.gemspec Remove invalid -S option from rdoc_options. 2020-06-18 09:18:52 -04:00

README.markdown

CodeRay

CircleCI Gem Version Maintainability

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

See rubydoc.