Project

General

Profile

FAQ

Documentation

Both are somewhat historic, and will be cleaned up some day!

The HTML output doesn't have colors!

If you use the HTML encoder, you need a CodeRay stylesheet. Try running:

coderay_stylesheet > coderay.css

or use the Div (inline styles) or Page (standalone HTML page) encoders.

I Want A <language> Scanner!

Read about ScannerRequests.

CodeRay throws errors at me when $DEBUG is set!

It will be adressed in the next release (#192). For now, wrap your CodeRay calls with:

debug = $DEBUG
$DEBUG = false
CodeRay.do(:something)
$DEBUG = debug

The JSON scanner doesn't allow comments!

That's because you use invalid JSON. It doesn't allow comments, unquoted keys, single-quoted strings, the value undefined, or embedded walruses. CodeRay highlights all these as errors.

You can either abandon invalid JSON, or use the JavaScript scanner, which handles everything except embedded walruses.

Also read an elaborate answer about the Picky JSON Scanner.

The so-called public repository asks me for a password when checking out!

See http://redmine.rubychan.de/issues/128#note-8.