borland.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. """
  2. pygments.styles.borland
  3. ~~~~~~~~~~~~~~~~~~~~~~~
  4. Style similar to the style used in the Borland IDEs.
  5. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. from pygments.style import Style
  9. from pygments.token import Keyword, Name, Comment, String, Error, \
  10. Number, Operator, Generic, Whitespace
  11. __all__ = ['BorlandStyle']
  12. class BorlandStyle(Style):
  13. """
  14. Style similar to the style used in the borland IDEs.
  15. """
  16. name = 'borland'
  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.EmphStrong: 'bold italic',
  37. Generic.Prompt: '#555555',
  38. Generic.Output: '#888888',
  39. Generic.Traceback: '#aa0000',
  40. Error: 'bg:#e3d2d2 #a61717'
  41. }