Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pygments/styles/default.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-07-01 06:54 +0000

1""" 

2 pygments.styles.default 

3 ~~~~~~~~~~~~~~~~~~~~~~~ 

4 

5 The default highlighting style. 

6 

7 :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. 

8 :license: BSD, see LICENSE for details. 

9""" 

10 

11from pygments.style import Style 

12from pygments.token import Keyword, Name, Comment, String, Error, \ 

13 Number, Operator, Generic, Whitespace 

14 

15 

16class DefaultStyle(Style): 

17 """ 

18 The default style (inspired by Emacs 22). 

19 """ 

20 

21 background_color = "#f8f8f8" 

22 

23 styles = { 

24 Whitespace: "#bbbbbb", 

25 Comment: "italic #3D7B7B", 

26 Comment.Preproc: "noitalic #9C6500", 

27 

28 #Keyword: "bold #AA22FF", 

29 Keyword: "bold #008000", 

30 Keyword.Pseudo: "nobold", 

31 Keyword.Type: "nobold #B00040", 

32 

33 Operator: "#666666", 

34 Operator.Word: "bold #AA22FF", 

35 

36 Name.Builtin: "#008000", 

37 Name.Function: "#0000FF", 

38 Name.Class: "bold #0000FF", 

39 Name.Namespace: "bold #0000FF", 

40 Name.Exception: "bold #CB3F38", 

41 Name.Variable: "#19177C", 

42 Name.Constant: "#880000", 

43 Name.Label: "#767600", 

44 Name.Entity: "bold #717171", 

45 Name.Attribute: "#687822", 

46 Name.Tag: "bold #008000", 

47 Name.Decorator: "#AA22FF", 

48 

49 String: "#BA2121", 

50 String.Doc: "italic", 

51 String.Interpol: "bold #A45A77", 

52 String.Escape: "bold #AA5D1F", 

53 String.Regex: "#A45A77", 

54 #String.Symbol: "#B8860B", 

55 String.Symbol: "#19177C", 

56 String.Other: "#008000", 

57 Number: "#666666", 

58 

59 Generic.Heading: "bold #000080", 

60 Generic.Subheading: "bold #800080", 

61 Generic.Deleted: "#A00000", 

62 Generic.Inserted: "#008400", 

63 Generic.Error: "#E40000", 

64 Generic.Emph: "italic", 

65 Generic.Strong: "bold", 

66 Generic.Prompt: "bold #000080", 

67 Generic.Output: "#717171", 

68 Generic.Traceback: "#04D", 

69 

70 Error: "border:#FF0000" 

71 }