rubychan / coderay

Fast and easy syntax highlighting for selected languages, written in Ruby.
http://coderay.rubychan.de/
Other
846 stars 115 forks source link

coderay executable’s help string is wrong #184

Open Quintus opened 9 years ago

Quintus commented 9 years ago

coderay --help states this:

  coderay file.rb > file.html          # highlight file to HTML page

However, that command generates terminal output. The file.html page contains ANSI escape sequences and no HTML. For an HTML page, only this works:

coderay credits.cpp -page > test.html

This is on ArchLinux 64bit with Ruby ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] and CodeRay 1.1.0.

Vale, Quintus

korny commented 9 years ago

Thanks! Does this fix it? https://github.com/rubychan/coderay/commit/cb18c6af5f53cba503fb9704ce656596ae3db075

Quintus commented 9 years ago

Yes, that looks good.

Thank you.

Vale, Marvin