borland.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.borland
  4. ~~~~~~~~~~~~~~~~~~~~~~~
  5. Style similar to the style used in the Borland IDEs.
  6. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
  7. :license: BSD, see LICENSE for details.
  8. """
  9. from pygments.style import Style
  10. from pygments.token import Keyword, Name, Comment, String, Error, \
  11. Number, Operator, Generic, Whitespace
  12. class BorlandStyle(Style):
  13. """
  14. Style similar to the style used in the borland IDEs.
  15. """
  16. default_style = ''
  17. styles = {
  18. Whitespace: '#bbbbbb',
  19. Comment: 'italic #008800',
  20. Comment.Preproc: 'noitalic #008080',
  21. Comment.Special: 'noitalic bold',
  22. String: '#0000FF',
  23. String.Char: '#800080',
  24. Number: '#0000FF',
  25. Keyword: 'bold #000080',
  26. Operator.Word: 'bold',
  27. Name.Tag: 'bold #000080',
  28. Name.Attribute: '#FF0000',
  29. Generic.Heading: '#999999',
  30. Generic.Subheading: '#aaaaaa',
  31. Generic.Deleted: 'bg:#ffdddd #000000',
  32. Generic.Inserted: 'bg:#ddffdd #000000',
  33. Generic.Error: '#aa0000',
  34. Generic.Emph: 'italic',
  35. Generic.Strong: 'bold',
  36. Generic.Prompt: '#555555',
  37. Generic.Output: '#888888',
  38. Generic.Traceback: '#aa0000',
  39. Error: 'bg:#e3d2d2 #a61717'
  40. }