manni.py 2.3 KB

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