codekingpro/portable-devtools
114k
1"""2 pygments.styles.emacs3 ~~~~~~~~~~~~~~~~~~~~~4 5 A highlighting style for Pygments, inspired by Emacs.6 7 :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.8 :license: BSD, see LICENSE for details.9"""10 11from pygments.style import Style12from pygments.token import Keyword, Name, Comment, String, Error, \13 Number, Operator, Generic, Whitespace14 15 16__all__ = ['EmacsStyle']17 18 19class EmacsStyle(Style):20 """21 The default style (inspired by Emacs 22).22 """23 name = 'emacs'24 25 background_color = "#f8f8f8"26 27 styles = {28 Whitespace: "#bbbbbb",29 Comment: "italic #008800",30 Comment.Preproc: "noitalic",31 Comment.Special: "noitalic bold",32 33 Keyword: "bold #AA22FF",34 Keyword.Pseudo: "nobold",35 Keyword.Type: "bold #00BB00",36 37 Operator: "#666666",38 Operator.Word: "bold #AA22FF",39 40 Name.Builtin: "#AA22FF",41 Name.Function: "#00A000",42 Name.Class: "#0000FF",43 Name.Namespace: "bold #0000FF",44 Name.Exception: "bold #D2413A",45 Name.Variable: "#B8860B",46 Name.Constant: "#880000",47 Name.Label: "#A0A000",48 Name.Entity: "bold #999999",49 Name.Attribute: "#BB4444",50 Name.Tag: "bold #008000",51 Name.Decorator: "#AA22FF",52 53 String: "#BB4444",54 String.Doc: "italic",55 String.Interpol: "bold #BB6688",56 String.Escape: "bold #BB6622",57 String.Regex: "#BB6688",58 String.Symbol: "#B8860B",59 String.Other: "#008000",60 Number: "#666666",61 62 Generic.Heading: "bold #000080",63 Generic.Subheading: "bold #800080",64 Generic.Deleted: "#A00000",65 Generic.Inserted: "#00A000",66 Generic.Error: "#FF0000",67 Generic.Emph: "italic",68 Generic.Strong: "bold",69 Generic.EmphStrong: "bold italic",70 Generic.Prompt: "bold #000080",71 Generic.Output: "#888",72 Generic.Traceback: "#04D",73 74 Error: "border:#FF0000"75 }76 