rocco/lib
Mike West 0b392c1094 Attempt to autodetect file language
`pygmentize` 1.0+ has an `-N` option that attempts to match a file (via
the extension) to a language lexer.  If `pygmentize` is installed, we'll
run it with this option to get a language.

If no language is detected, `pygmentize -N` returns `text`.  In that case,
we'll first look for a user-provided language to use as a fallback.  If no
language was provided, highlight using `ruby` as a reasonable default.

Closes issue #19.
2010-10-20 15:11:07 +02:00
..
rocco Merge remote branch 'mikewest/template' 2010-10-19 03:35:33 -07:00
rocco.rb Attempt to autodetect file language 2010-10-20 15:11:07 +02:00