Created
June 22, 2010 02:57
-
-
Save titanous/447864 to your computer and use it in GitHub Desktop.
Twilight pygments style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
pygments.styles.twilight | |
~~~~~~~~~~~~~~~~~~~~~~~~ | |
A clone of the Twilight style from TextMate. | |
""" | |
from pygments.style import Style | |
from pygments.token import Keyword, Name, Comment, String, Error, \ | |
Number, Operator, Generic, Whitespace | |
class TwilightStyle(Style): | |
background_color = "#141414" | |
default_style = "#F8F8F8" | |
styles = { | |
Whitespace: "#141414", | |
Comment: "italic #5F5A60", | |
Keyword: "bold #CDA869", | |
Keyword.Pseudo: "nobold #9B703F", | |
Keyword.Type: "nobold", | |
Operator: "#F8F8F8", | |
Operator.Word: "bold #AA22FF", | |
Name.Builtin: "#CDA869", | |
Name.Function: "bold #9B703F", | |
Name.Class: "bold #9B859D", | |
Name.Namespace: "bold #9B859D", | |
Name.Variable: "#7587A6", | |
Name.Constant: "#9B859D", | |
Name.Entity: "bold #CF6A4C", | |
Name.Attribute: "#F9EE98", | |
Name.Tag: "bold #CDA869", | |
Name.Decorator: "#7587A6", | |
String: "#8F9D6A", | |
String.Doc: "italic", | |
String.Interpol: "bold #DAEFA3", | |
String.Escape: "bold #F9EE98", | |
String.Regex: "#E9C062", | |
String.Symbol: "#CF6A4C", | |
Number: "#CF6A4C", | |
Generic.Heading: "bold #000080", | |
Generic.Subheading: "bold #800080", | |
Generic.Deleted: "bg:#420E09 #F8F8F8", | |
Generic.Inserted: "bg:#253B22 #F8F8F8", | |
Generic.Error: "bg:#B22518 #F8F8F8", | |
Generic.Emph: "italic", | |
Generic.Strong: "bold", | |
Generic.Prompt: "bold #F8F8F8", | |
Generic.Output: "#F8F8F8", | |
Generic.Traceback: "#F8F8F8", | |
Error: "border:#B22518" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment