codekingpro/portable-devtools
114k
1"""2 pygments.styles.bw3 ~~~~~~~~~~~~~~~~~~4 5 Simple black/white only style.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 Operator, Generic14 15 16__all__ = ['BlackWhiteStyle']17 18 19class BlackWhiteStyle(Style):20 name = 'bw'21 22 background_color = "#ffffff"23 24 styles = {25 Comment: "italic",26 Comment.Preproc: "noitalic",27 28 Keyword: "bold",29 Keyword.Pseudo: "nobold",30 Keyword.Type: "nobold",31 32 Operator.Word: "bold",33 34 Name.Class: "bold",35 Name.Namespace: "bold",36 Name.Exception: "bold",37 Name.Entity: "bold",38 Name.Tag: "bold",39 40 String: "italic",41 String.Interpol: "bold",42 String.Escape: "bold",43 44 Generic.Heading: "bold",45 Generic.Subheading: "bold",46 Generic.Emph: "italic",47 Generic.Strong: "bold",48 Generic.EmphStrong: "bold italic",49 Generic.Prompt: "bold",50 51 Error: "border:#FF0000"52 }53 