Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

pygments-styles-dump

This is simply a dump of all the CSS styles included with Pygments.

The following script was used to generate the contents of this repo.

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from codecs import open
from os import getcwd, path

from pygments.formatters import HtmlFormatter
from pygments.styles import get_all_styles


cwd = getcwd()

for style in get_all_styles():
    with open(path.join(cwd, style + '.css'), 'w', encoding = 'utf-8') as f:
        f.write(HtmlFormatter(style = style).get_style_defs('.highlight') + '\n')

About

A dump of all the CSS styles included with Pygments.

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.