codekingpro/portable-devtools
114k
1"""2 pygments.styles.friendly3 ~~~~~~~~~~~~~~~~~~~~~~~~4 5 A modern style based on the VIM pyte theme.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__ = ['FriendlyStyle']17 18 19class FriendlyStyle(Style):20 """21 A modern style based on the VIM pyte theme.22 """23 name = 'friendly'24 25 background_color = "#f0f0f0"26 line_number_color = "#666666"27 28 styles = {29 Whitespace: "#bbbbbb",30 Comment: "italic #60a0b0",31 Comment.Preproc: "noitalic #007020",32 Comment.Special: "noitalic bg:#fff0f0",33 34 Keyword: "bold #007020",35 Keyword.Pseudo: "nobold",36 Keyword.Type: "nobold #902000",37 38 Operator: "#666666",39 Operator.Word: "bold #007020",40 41 Name.Builtin: "#007020",42 Name.Function: "#06287e",43 Name.Class: "bold #0e84b5",44 Name.Namespace: "bold #0e84b5",45 Name.Exception: "#007020",46 Name.Variable: "#bb60d5",47 Name.Constant: "#60add5",48 Name.Label: "bold #002070",49 Name.Entity: "bold #d55537",50 Name.Attribute: "#4070a0",51 Name.Tag: "bold #062873",52 Name.Decorator: "bold #555555",53 54 String: "#4070a0",55 String.Doc: "italic",56 String.Interpol: "italic #70a0d0",57 String.Escape: "bold #4070a0",58 String.Regex: "#235388",59 String.Symbol: "#517918",60 String.Other: "#c65d09",61 Number: "#40a070",62 63 Generic.Heading: "bold #000080",64 Generic.Subheading: "bold #800080",65 Generic.Deleted: "#A00000",66 Generic.Inserted: "#00A000",67 Generic.Error: "#FF0000",68 Generic.Emph: "italic",69 Generic.Strong: "bold",70 Generic.EmphStrong: "bold italic",71 Generic.Prompt: "bold #c65d09",72 Generic.Output: "#888",73 Generic.Traceback: "#04D",74 75 Error: "border:#FF0000"76 }77 