aboutsummaryrefslogtreecommitdiff
path: root/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Fall back to guess the lexer by contentAlberto Bertogli2012-11-181-2/+6
| | | | | | | | | If we can't guess the lexer by the file name, try to guess based on the content. This allows pygments to colorize extension-less files, usually scripts. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Use heuristics to decide what to colorizeAlberto Bertogli2012-11-181-2/+22
| | | | | | | In practise pygments seems to have a very hard time processing large files and files with long lines, so try to avoid using it in those cases. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
* Initial commit0.01Alberto Bertogli2012-11-101-0/+41
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>