codekingpro/portable-devtools
114k
1"""2 pygments.styles.dracula3 ~~~~~~~~~~~~~~~~~~~~~~~4 5 Pygments version of `Dracula` from https://github.com/dracula/dracula-theme.6 7 Based on the Dracula Theme for pygments by Chris Bracco.8 See https://github.com/dracula/pygments/tree/fee9ed5613d1086bc01b9d0a5a0e9867a009f5719 10 :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.11 :license: BSD, see LICENSE for details.12"""13 14from pygments.style import Style15from pygments.token import Keyword, Name, Comment, String, Error, Literal, \16 Number, Operator, Other, Punctuation, Text, Generic, Whitespace17 18 19__all__ = ['DraculaStyle']20 21background = "#282a36"22foreground = "#f8f8f2"23selection = "#44475a"24comment = "#6272a4"25cyan = "#8be9fd"26green = "#50fa7b"27orange = "#ffb86c"28pink = "#ff79c6"29purple = "#bd93f9"30red = "#ff5555"31yellow = "#f1fa8c"32 33deletion = "#8b080b"34 35class DraculaStyle(Style):36 name = 'dracula'37 38 background_color = background39 highlight_color = selection40 line_number_color = yellow41 line_number_background_color = selection42 line_number_special_color = green43 line_number_special_background_color = comment44 45 styles = {46 Whitespace: foreground,47 48 Comment: comment,49 Comment.Preproc: pink,50 51 Generic: foreground,52 Generic.Deleted: deletion,53 Generic.Emph: "underline",54 Generic.Heading: "bold",55 Generic.Inserted: "bold",56 Generic.Output: selection,57 Generic.EmphStrong: "underline",58 Generic.Subheading: "bold",59 60 Error: foreground,61 62 Keyword: pink,63 Keyword.Constant: pink,64 Keyword.Declaration: cyan + " italic",65 Keyword.Type: cyan,66 67 Literal: foreground,68 69 Name: foreground,70 Name.Attribute: green,71 Name.Builtin: cyan + " italic",72 Name.Builtin.Pseudo: foreground,73 Name.Class: green,74 Name.Function: green,75 Name.Label: cyan + " italic",76 Name.Tag: pink,77 Name.Variable: cyan + " italic",78 79 Number: orange,80 81 Operator: pink,82 83 Other: foreground,84 85 Punctuation: foreground,86 87 String: purple,88 89 Text: foreground,90 }91 