Example #1
0
 def generate_pyg_css(self):
     pyg_css = HtmlFormatter().get_style_defs('.code')
     file_path = os.path.join(WWW_STATIC_PATH, 'pygments.css')
     open(file_path, 'w').write(pyg_css.encode('utf8'))
Example #2
0
 def generate_pyg_css(self):
     pyg_css = HtmlFormatter().get_style_defs('.code')
     file_path = os.path.join(WWW_STATIC_PATH, 'pygments.css')
     open(file_path, 'w').write(pyg_css.encode('utf8'))
Example #3
0
 def generate_pyg_css(self):
     pyg_css = HtmlFormatter().get_style_defs(".code")
     file_path = os.path.join(WWW_STATIC_PATH, "pygments.css")
     open(file_path, "w").write(pyg_css.encode("utf8"))