annotate vendor/gems/coderay-0.9.7/lib/README @ 1176:7d9db6065048 bug_352

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