Skip to content

A dump of all the CSS styles included with Pygments.

Notifications You must be signed in to change notification settings

matrixer/pygments-styles-dump

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published