From 62da3ebc08949d60a9d7b6ce84d9fe6ed68110db Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Wed, 14 Nov 2012 00:48:46 +0000 Subject: Use heuristics to decide what to colorize 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 --- views/blob.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/blob.html') diff --git a/views/blob.html b/views/blob.html index 4d5f7d0..283bbcd 100644 --- a/views/blob.html +++ b/views/blob.html @@ -36,7 +36,7 @@ {{!fname.html}} -% if has_colorizer(): +% if can_colorize(blob): {{!colorize_blob(fname.unicode, blob)}} % else:
-- 
cgit v1.2.3