manni.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.manni
  4. ~~~~~~~~~~~~~~~~~~~~~
  5. A colorful style, inspired by the terminal highlighting style.
  6. This is a port of the style used in the `php port`_ of pygments
  7. by Manni. The style is called 'default' there.
  8. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
  9. :license: BSD, see LICENSE for details.
  10. """
  11. from pygments.style import Style
  12. from pygments.token import Keyword, Name, Comment, String, Error, \
  13. Number, Operator, Generic, Whitespace
  14. class ManniStyle(Style):
  15. """
  16. A colorful style, inspired by the terminal highlighting style.
  17. """
  18. background_color = '#f0f3f3'
  19. styles = {
  20. Whitespace: '#bbbbbb',
  21. Comment: 'italic #0099FF',
  22. Comment.Preproc: 'noitalic #009999',
  23. Comment.Special: 'bold',
  24. Keyword: 'bold #006699',
  25. Keyword.Pseudo: 'nobold',
  26. Keyword.Type: '#007788',
  27. Operator: '#555555',
  28. Operator.Word: 'bold #000000',
  29. Name.Builtin: '#336666',
  30. Name.Function: '#CC00FF',
  31. Name.Class: 'bold #00AA88',
  32. Name.Namespace: 'bold #00CCFF',
  33. Name.Exception: 'bold #CC0000',
  34. Name.Variable: '#003333',
  35. Name.Constant: '#336600',
  36. Name.Label: '#9999FF',
  37. Name.Entity: 'bold #999999',
  38. Name.Attribute: '#330099',
  39. Name.Tag: 'bold #330099',
  40. Name.Decorator: '#9999FF',
  41. String: '#CC3300',
  42. String.Doc: 'italic',
  43. String.Interpol: '#AA0000',
  44. String.Escape: 'bold #CC3300',
  45. String.Regex: '#33AAAA',
  46. String.Symbol: '#FFCC33',
  47. String.Other: '#CC3300',
  48. Number: '#FF6600',
  49. Generic.Heading: 'bold #003300',
  50. Generic.Subheading: 'bold #003300',
  51. Generic.Deleted: 'border:#CC0000 bg:#FFCCCC',
  52. Generic.Inserted: 'border:#00CC00 bg:#CCFFCC',
  53. Generic.Error: '#FF0000',
  54. Generic.Emph: 'italic',
  55. Generic.Strong: 'bold',
  56. Generic.Prompt: 'bold #000099',
  57. Generic.Output: '#AAAAAA',
  58. Generic.Traceback: '#99CC66',
  59. Error: 'bg:#FFAAAA #AA0000'
  60. }