Skip to content

Commit 0d2d0be

Browse files
committed
convert README to markdown, use syntax highlighting, cleanup
1 parent 61d1a15 commit 0d2d0be

File tree

2 files changed

+27
-37
lines changed

2 files changed

+27
-37
lines changed

README.markdown

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# CodeRay [![Build Status](https://travis-ci.org/rubychan/coderay.png)](https://travis-ci.org/rubychan/coderay)
2+
3+
## About
4+
5+
CodeRay is a Ruby library for syntax highlighting.
6+
7+
You put your code in, and you get it back colored; Keywords, strings, floats, comments - all in different colors. And with line numbers.
8+
9+
## Installation
10+
11+
`gem install coderay`
12+
13+
### Dependencies
14+
15+
CodeRay needs Ruby 1.8.7+ or 1.9.2+. It also runs on Rubinius and JRuby.
16+
17+
## Example Usage
18+
19+
```ruby
20+
require 'coderay'
21+
22+
html = CodeRay.scan("puts 'Hello, world!'", :ruby).div(:line_numbers => :table)
23+
````
24+
25+
## Documentation
26+
27+
See [http://coderay.rubychan.de/doc/](http://coderay.rubychan.de/doc/).

README.textile

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)