Upcoming events update
[mp-talk.git] / pygmentize
CommitLineData
c8e58f5a
KA
1#! /usr/bin/python
2import pygments.styles as ps
3import pygments.plugin as pg
4from solarized import SolarizedStyle
5
6patched = ps.get_style_by_name
7
8def get_style_by_name(style_name):
9 if style_name == 'solarized':
10 return SolarizedStyle
11 else:
12 return patched(style_name)
13
14ps.get_style_by_name = get_style_by_name
15
16patched2 = pg.find_plugin_styles
17
18def find_plugin_styles(foo):
19 return 'solarized', SolarizedStyle
20
21pg.find_plugin_styles = find_plugin_styles
22
23import pygments.cmdline
24pygments.cmdline.main()
This page took 0.014831 seconds and 4 git commands to generate.