manni.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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-2024 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. __all__ = ['ManniStyle']
  14. class ManniStyle(Style):
  15. """
  16. A colorful style, inspired by the terminal highlighting style.
  17. """
  18. name = 'manni'
  19. background_color = '#f0f3f3'
  20. styles = {
  21. Whitespace: '#bbbbbb',
  22. Comment: 'italic #0099FF',
  23. Comment.Preproc: 'noitalic #009999',
  24. Comment.Special: 'bold',
  25. Keyword: 'bold #006699',
  26. Keyword.Pseudo: 'nobold',
  27. Keyword.Type: '#007788',
  28. Operator: '#555555',
  29. Operator.Word: 'bold #000000',
  30. Name.Builtin: '#336666',
  31. Name.Function: '#CC00FF',
  32. Name.Class: 'bold #00AA88',
  33. Name.Namespace: 'bold #00CCFF',
  34. Name.Exception: 'bold #CC0000',
  35. Name.Variable: '#003333',
  36. Name.Constant: '#336600',
  37. Name.Label: '#9999FF',
  38. Name.Entity: 'bold #999999',
  39. Name.Attribute: '#330099',
  40. Name.Tag: 'bold #330099',
  41. Name.Decorator: '#9999FF',
  42. String: '#CC3300',
  43. String.Doc: 'italic',
  44. String.Interpol: '#AA0000',
  45. String.Escape: 'bold #CC3300',
  46. String.Regex: '#33AAAA',
  47. String.Symbol: '#FFCC33',
  48. String.Other: '#CC3300',
  49. Number: '#FF6600',
  50. Generic.Heading: 'bold #003300',
  51. Generic.Subheading: 'bold #003300',
  52. Generic.Deleted: 'border:#CC0000 bg:#FFCCCC',
  53. Generic.Inserted: 'border:#00CC00 bg:#CCFFCC',
  54. Generic.Error: '#FF0000',
  55. Generic.Emph: 'italic',
  56. Generic.Strong: 'bold',
  57. Generic.EmphStrong: 'bold italic',
  58. Generic.Prompt: 'bold #000099',
  59. Generic.Output: '#AAAAAA',
  60. Generic.Traceback: '#99CC66',
  61. Error: 'bg:#FFAAAA #AA0000'
  62. }