From mboxrd@z Thu Jan 1 00:00:00 1970 From: stefan at sevenbyte.org (Stefan Tatschner) Date: Mon, 13 Jan 2014 22:10:46 +0100 Subject: [PATCH v3 2/2] filters: Choose 'trac' theme in pygments In-Reply-To: <1389647446-5337-1-git-send-email-stefan@sevenbyte.org> References: <1389647446-5337-1-git-send-email-stefan@sevenbyte.org> Message-ID: <1389647446-5337-2-git-send-email-stefan@sevenbyte.org> Using trac theme for pygments. It is very clean and not as intrusive as the default or pastie theme. Especially I do not like the the 'pastie' theme very much because of the very strange illustration of multiline strings (the red background thing). Signed-off-by: Stefan Tatschner --- filters/syntax-highlighting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters/syntax-highlighting.py b/filters/syntax-highlighting.py index 53081a4..67855d1 100755 --- a/filters/syntax-highlighting.py +++ b/filters/syntax-highlighting.py @@ -32,7 +32,7 @@ from pygments.formatters import HtmlFormatter # read stdin and decode to utf-8. ignore any unkown signs. data = sys.stdin.read().decode(encoding='utf-8', errors='ignore') filename = sys.argv[1] -formatter = HtmlFormatter(encoding='utf-8', style='pastie') +formatter = HtmlFormatter(encoding='utf-8', style='trac') try: lexer = guess_lexer_for_filename(filename, data, encoding='utf-8') -- 1.8.5.2