borland.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. """
  2. pygments.styles.borland
  3. ~~~~~~~~~~~~~~~~~~~~~~~
  4. Style similar to the style used in the Borland IDEs.
  5. :copyright: Copyright 2006-2021 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. class BorlandStyle(Style):
  12. """
  13. Style similar to the style used in the borland IDEs.
  14. """
  15. default_style = ''
  16. styles = {
  17. Whitespace: '#bbbbbb',
  18. Comment: 'italic #008800',
  19. Comment.Preproc: 'noitalic #008080',
  20. Comment.Special: 'noitalic bold',
  21. String: '#0000FF',
  22. String.Char: '#800080',
  23. Number: '#0000FF',
  24. Keyword: 'bold #000080',
  25. Operator.Word: 'bold',
  26. Name.Tag: 'bold #000080',
  27. Name.Attribute: '#FF0000',
  28. Generic.Heading: '#999999',
  29. Generic.Subheading: '#aaaaaa',
  30. Generic.Deleted: 'bg:#ffdddd #000000',
  31. Generic.Inserted: 'bg:#ddffdd #000000',
  32. Generic.Error: '#aa0000',
  33. Generic.Emph: 'italic',
  34. Generic.Strong: 'bold',
  35. Generic.Prompt: '#555555',
  36. Generic.Output: '#888888',
  37. Generic.Traceback: '#aa0000',
  38. Error: 'bg:#e3d2d2 #a61717'
  39. }