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