staroffice.py 831 B

12345678910111213141516171819202122232425262728293031
  1. """
  2. pygments.styles.staroffice
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. Style similar to StarOffice style, also in OpenOffice and LibreOffice.
  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 Comment, Error, Literal, Name, Token
  10. __all__ = ['StarofficeStyle']
  11. class StarofficeStyle(Style):
  12. """
  13. Style similar to StarOffice style, also in OpenOffice and LibreOffice.
  14. """
  15. name = 'staroffice'
  16. styles = {
  17. Token: '#000080', # Blue
  18. Comment: '#696969', # DimGray
  19. Error: '#800000', # Maroon
  20. Literal: '#EE0000', # Red
  21. Name: '#008000', # Green
  22. }