From f1b0372d1cad18dd5e70d04d473b0feb469253c7 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 10 May 2015 18:31:45 +0200 Subject: Add pygments syntax highlighting --- scripts/bupa | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/bupa b/scripts/bupa index e87ca4c..3802982 100755 --- a/scripts/bupa +++ b/scripts/bupa @@ -29,7 +29,8 @@ class Page(object): def reST_to_html(s, id_prefix='id'): formated = core.publish_parts(s, writer_name='html4css1', settings_overrides={'footnote_references': 'superscript', - 'auto_id_prefix': str(id_prefix) + '-',}) + 'auto_id_prefix': str(id_prefix) + '-', + 'syntax_highlight': 'short'}) return formated['fragment'] def filename_to_id(file_name): -- cgit v1.2.3-70-g09d2