Mercurial > piecrust2
changeset 506:6ca1b6fb9964
templating: `highlight_css` can be passed the name of a Pygments style.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 25 Jul 2015 21:55:26 -0700 |
parents | 883a5544cd7f |
children | ee3fe63cc51d |
files | piecrust/templating/jinjaengine.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/templating/jinjaengine.py Sat Jul 25 00:48:25 2015 -0700 +++ b/piecrust/templating/jinjaengine.py Sat Jul 25 21:55:26 2015 -0700 @@ -403,8 +403,8 @@ return code -def get_highlight_css(class_name='.highlight'): - return HtmlFormatter().get_style_defs(class_name) +def get_highlight_css(style_name='default', class_name='.highlight'): + return HtmlFormatter(style=style_name).get_style_defs(class_name) class PieCrustCacheExtension(Extension):