annotate vendor/gems/coderay-1.0.0/README_INDEX.rdoc @ 1170:bfd49444c276 feature_523

Close obsolete branch feature_523
author Chris Cannam
date Wed, 17 Oct 2012 16:48:02 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 = CodeRay
Chris@909 2
Chris@909 3 Tired of blue'n'gray? Try the original version of this documentation on
Chris@909 4 coderay.rubychan.de[http://coderay.rubychan.de/doc/] :-)
Chris@909 5
Chris@909 6 == About
Chris@909 7
Chris@909 8 CodeRay is a Ruby library for syntax highlighting.
Chris@909 9
Chris@909 10 You put your code in, and you get it back colored; Keywords, strings,
Chris@909 11 floats, comments - all in different colors. And with line numbers.
Chris@909 12
Chris@909 13 *Syntax* *Highlighting*...
Chris@909 14 * makes code easier to read and maintain
Chris@909 15 * lets you detect syntax errors faster
Chris@909 16 * helps you to understand the syntax of a language
Chris@909 17 * looks nice
Chris@909 18 * is what everybody wants to have on their website
Chris@909 19 * solves all your problems and makes the girls run after you
Chris@909 20
Chris@909 21
Chris@909 22 == Installation
Chris@909 23
Chris@909 24 % gem install coderay
Chris@909 25
Chris@909 26
Chris@909 27 === Dependencies
Chris@909 28
Chris@909 29 CodeRay needs Ruby 1.8.7+ or 1.9.2+. It also runs on Rubinius and JRuby.
Chris@909 30
Chris@909 31
Chris@909 32 == Example Usage
Chris@909 33
Chris@909 34 require 'coderay'
Chris@909 35
Chris@909 36 html = CodeRay.scan("puts 'Hello, world!'", :ruby).div(:line_numbers => :table)
Chris@909 37
Chris@909 38
Chris@909 39 == Documentation
Chris@909 40
Chris@909 41 See CodeRay.
Chris@909 42
Chris@909 43
Chris@909 44 == Credits
Chris@909 45
Chris@909 46 === Special Thanks to
Chris@909 47
Chris@909 48 * licenser (Heinz N. Gies) for ending my QBasic career, inventing the Coder
Chris@909 49 project and the input/output plugin system.
Chris@909 50 CodeRay would not exist without him.
Chris@909 51 * bovi (Daniel Bovensiepen) for helping me out on various occasions.
Chris@909 52
Chris@909 53 === Thanks to
Chris@909 54
Chris@909 55 * Caleb Clausen for writing RubyLexer (see
Chris@909 56 http://rubyforge.org/projects/rubylexer) and lots of very interesting mail
Chris@909 57 traffic
Chris@909 58 * birkenfeld (Georg Brandl) and mitsuhiku (Arnim Ronacher) for PyKleur, now pygments.
Chris@909 59 You guys rock!
Chris@909 60 * Jamis Buck for writing Syntax (see http://rubyforge.org/projects/syntax)
Chris@909 61 I got some useful ideas from it.
Chris@909 62 * Doug Kearns and everyone else who worked on ruby.vim - it not only helped me
Chris@909 63 coding CodeRay, but also gave me a wonderful target to reach for the Ruby
Chris@909 64 scanner.
Chris@909 65 * everyone who uses CodeBB on http://www.rubyforen.de and http://www.python-forum.de
Chris@909 66 * iGEL, magichisoka, manveru, WoNáDo and everyone I forgot from rubyforen.de
Chris@909 67 * Dethix from ruby-mine.de
Chris@909 68 * zickzackw
Chris@909 69 * Dookie (who is no longer with us...) and Leonidas from http://www.python-forum.de
Chris@909 70 * Andreas Schwarz for finding out that CaseIgnoringWordList was not case
Chris@909 71 ignoring! Such things really make you write tests.
Chris@909 72 * closure for the first version of the Scheme scanner.
Chris@909 73 * Stefan Walk for the first version of the JavaScript and PHP scanners.
Chris@909 74 * Josh Goebel for another version of the JavaScript scanner, a SQL and a Diff scanner.
Chris@909 75 * Jonathan Younger for pointing out the licence confusion caused by wrong LICENSE file.
Chris@909 76 * Jeremy Hinegardner for finding the shebang-on-empty-file bug in FileType.
Chris@909 77 * Charles Oliver Nutter and Yehuda Katz for helping me benchmark CodeRay on JRuby.
Chris@909 78 * Andreas Neuhaus for pointing out a markup bug in coderay/for_redcloth.
Chris@909 79 * 0xf30fc7 for the FileType patch concerning Delphi file extensions.
Chris@909 80 * The folks at redmine.org - thank you for using and fixing CodeRay!
Chris@909 81 * Keith Pitt for his SQL scanners
Chris@909 82 * Rob Aldred for the terminal encoder
Chris@909 83 * Trans for pointing out $DEBUG dependencies
Chris@909 84 * Flameeyes for finding that Term::ANSIColor was obsolete
Chris@909 85 * matz and all Ruby gods and gurus
Chris@909 86 * The inventors of: the computer, the internet, the true color display, HTML &
Chris@909 87 CSS, VIM, Ruby, pizza, microwaves, guitars, scouting, programming, anime,
Chris@909 88 manga, coke and green ice tea.
Chris@909 89
Chris@909 90 Where would we be without all those people?
Chris@909 91
Chris@909 92 === Created using
Chris@909 93
Chris@909 94 * Ruby[http://ruby-lang.org/]
Chris@909 95 * Chihiro (my Sony VAIO laptop); Henrietta (my old MacBook);
Chris@909 96 Triella, born Rico (my new MacBook); as well as
Chris@909 97 Seras and Hikari (my PCs)
Chris@909 98 * RDE[http://homepage2.nifty.com/sakazuki/rde_e.html],
Chris@909 99 VIM[http://vim.org] and TextMate[http://macromates.com]
Chris@909 100 * Subversion[http://subversion.tigris.org/]
Chris@909 101 * Redmine[http://redmine.org/]
Chris@909 102 * Firefox[http://www.mozilla.org/products/firefox/],
Chris@909 103 Firebug[http://getfirebug.com/], Safari[http://www.apple.com/safari/], and
Chris@909 104 Thunderbird[http://www.mozilla.org/products/thunderbird/]
Chris@909 105 * RubyGems[http://docs.rubygems.org/] and Rake[http://rake.rubyforge.org/]
Chris@909 106 * TortoiseSVN[http://tortoisesvn.tigris.org/] using Apache via
Chris@909 107 XAMPP[http://www.apachefriends.org/en/xampp.html]
Chris@909 108 * RDoc (though I'm quite unsatisfied with it)
Chris@909 109 * Microsoft Windows (yes, I confess!) and MacOS X
Chris@909 110 * GNUWin32, MinGW and some other tools to make the shell under windows a bit
Chris@909 111 less useless
Chris@909 112 * Term::ANSIColor[http://term-ansicolor.rubyforge.org/]
Chris@909 113 * PLEAC[http://pleac.sourceforge.net/] code examples
Chris@909 114 * Github
Chris@909 115 * Travis CI (http://travis-ci.org/rubychan/github)
Chris@909 116
Chris@909 117 === Free
Chris@909 118
Chris@909 119 * As you can see, CodeRay was created under heavy use of *free* software.
Chris@909 120 * So CodeRay is also *free*.
Chris@909 121 * If you use CodeRay to create software, think about making this software
Chris@909 122 *free*, too.
Chris@909 123 * Thanks :)