- Notifications
You must be signed in to change notification settings - Fork113
Fast and easy syntax highlighting for selected languages, written in Ruby.
NotificationsYou must be signed in to change notification settings
rubychan/coderay
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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.
Syntax Highlighting…
- makes code easier to read and maintain
- lets you detect syntax errors faster
- helps you to understand the syntax of a language
- looks nice
- is what everybody wants to have on their website
- solves all your problems and makes the girls run after you
gem install coderayCodeRay needs Ruby 1.8.7+ or 1.9.2+. It also runs on Rubinius and JRuby.
require 'coderay'html = CodeRay.scan("puts 'Hello, world!'", :ruby).div(:line_numbers => :table)
Seehttp://coderay.rubychan.de/doc/.
- licenser (Heinz N. Gies) for ending my QBasic career, inventing the Coder project and the input/output plugin system. CodeRay would not exist without him.
- bovi (Daniel Bovensiepen) for helping me out on various occasions.
- Caleb Clausen for writingRubyLexer and lots of very interesting mail traffic
- birkenfeld (Georg Brandl) and mitsuhiku (Arnim Ronacher) for PyKleur, now Pygments. You guys rock!
- Jamis Buck for writingSyntax — I got some useful ideas from it.
- Doug Kearns and everyone else who worked on ruby.vim – it not only helped me coding CodeRay, but also gave me a wonderful target to reach for the Ruby scanner.
- everyone who uses CodeBB onhttp://www.rubyforen.de andhttp://www.python-forum.de
- iGEL, magichisoka, manveru, WoNáDo and everyone I forgot from rubyforen.de
- Dethix from ruby-mine.de
- zickzackw
- Dookie (who is no longer with us…) and Leonidas fromhttp://www.python-forum.de
- Andreas Schwarz for finding out that CaseIgnoringWordList was not case ignoring! Such things really make you write tests.
- closure for the first version of the Scheme scanner.
- Stefan Walk for the first version of the JavaScript andPHP scanners.
- Josh Goebel for another version of the JavaScript scanner, aSQL and a Diff scanner.
- Jonathan Younger for pointing out the licence confusion caused by wrongLICENSE file.
- Jeremy Hinegardner for finding the shebang-on-empty-file bug in FileType.
- Charles Oliver Nutter and Yehuda Katz for helping me benchmark CodeRay on JRuby.
- Andreas Neuhaus for pointing out a markup bug in coderay/for_redcloth.
- 0xf30fc7 for the FileType patch concerning Delphi file extensions.
- The folks at redmine.org – thank you for using and fixing CodeRay!
- Keith Pitt for hisSQL scanners
- Rob Aldred for the terminal encoder
- Trans for pointing out $DEBUG dependencies
- Flameeyes for finding that Term::ANSIColor was obsolete
- matz and all Ruby gods and gurus
- The inventors of: the computer, the internet, the true color display,HTML &CSS,VIM, Ruby, pizza, microwaves, guitars, scouting, programming, anime, manga, coke and green ice tea.
Where would we be without all those people?
- Ruby
- Chihiro (my SonyVAIO laptop); Henrietta (my old MacBook); Triella, born Rico (my new MacBook); as well as Seras and Hikari (my PCs)
- RDE,VIM andTextMate
- Subversion
- Redmine
- Firefox,Firebug,Safari, andThunderbird
- RubyGems andRake
- TortoiseSVN using Apache viaXAMPP
- RDoc (though I’m quite unsatisfied with it)
- Microsoft Windows (yes, I confess!) and MacOS X
- GNUWin32, MinGW and some other tools to make the shell under windows a bit less useless
- Term::ANSIColor
- PLEAC code examples
- Github
- Travis CI
- As you can see, CodeRay was created under heavy use offree software.
- So CodeRay is alsofree.
- If you use CodeRay to create software, think about making this softwarefree, too.
- Thanks :)
About
Fast and easy syntax highlighting for selected languages, written in Ruby.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
