Project

General

Profile

FAQ » History » Version 6

« Previous - Version 6/10 (diff) - Next » - Current version
Kornelius Kalnbach, 02/10/2010 02:01 AM


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 Exceptions 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 or strings, the value undefined, shebang lines, or embedded walruses. CodeRay highlights all these as errors.

You can either abandon invalid JSON, or use the JavaScript scanner.

Also read an elaborate answer about the Picky JSON Scanner.