I have created a pygments style, which uses the same colors as xcode, and named it xcode.py
:
from pygments.style import Style
from pygments.token import Keyword, Name, Comment, String, Error, \
Number, Operator, Generic
class xcodeStyle(Style):
default_style = ""
styles = {
Text: '#000000',
Comment: '#008426',
String: '#D92823',
Number: '#2F2ECF',
Keyword: '#C22A9C',
Name.Class: '#753EA3'
}
I tried placing it in /Library/Python/2.7/site-packages/pygments/styles
but when I list the available styles with
from pygments.styles import get_all_styles
styles = list(get_all_styles())
print styles
my style doesn't get recognized. Any ideas why?