def pygments_css(style): formatter = HtmlFormatter(style=style) return formatter.get_style_defs('.highlight')