Skip to content

Instantly share code, notes, and snippets.

@turbidsoul
Created May 13, 2013 09:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turbidsoul/5567214 to your computer and use it in GitHub Desktop.
Save turbidsoul/5567214 to your computer and use it in GitHub Desktop.
pygments styles
# -*- coding: utf-8 -*-
"""
pygments.styles.minimum
~~~~~~~~~~~~~~~~~~~~~~
pygments version of my "minimum" vim theme.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Keyword, Name, Comment, Error, \
Operator, Generic, Literal, Text
class MinimumStyle(Style):
"""
Pygments version of the "minimum" vim theme.
"""
default_style = "#d0d0d0"
styles = {
Comment: "italic #999999",
Comment.Multiline: "italic #999",
Comment.Preproc: "bold #cd2828",
Comment.Single: "italic #999",
Comment.Special: "bold #e50808 bg:#520000",
Error: "bg:#e3d2d2 #a61717",
Generic.Deleted: "#d22323",
Generic.Emph: "italic",
Generic.Error: "#d22323",
Generic.Heading: "bold #fff",
Generic.Inserted: "#589819",
Generic.Output: "#ccc",
Generic.Prompt: "#aaa",
Generic.Strong: "bold",
Generic.Subheading: "underline #fff",
Generic.Traceback: "#d22323",
Keyword: "bold #6ab825",
Keyword.Pseudo: "#6ab825",
Literal.Number: "#3677a9",
Literal.String: "#ed9d13",
Literal.String.Other: "#ffa500",
Name.Attribute: "#bbb",
Name.Builtin: "#24909d",
Name.Class: "underline #447fcf",
Name.Constant: "#40ffff",
Name.Decorator: "#ffa500",
Name.Exception: "#bbb",
Name.Function: "#447fcf",
Name.Namespace: "underline #447fcf",
Name.Tag: "bold #6ab825",
Name.Variable: "#40ffff",
Operator.Word: "bold #666",
Text.Whitespace: "#666"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment