borland.py 1.5 KB

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