stata_dark.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. """
  2. pygments.styles.stata_dark
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. Dark style inspired by Stata's do-file editor. Note this is not
  5. meant to be a complete style, just for Stata's file formats.
  6. :copyright: Copyright 2006-2024 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 Token, Keyword, Name, Comment, String, Error, \
  11. Number, Operator, Whitespace, Generic
  12. __all__ = ['StataDarkStyle']
  13. class StataDarkStyle(Style):
  14. name = 'stata-dark'
  15. background_color = "#232629"
  16. highlight_color = "#49483e"
  17. styles = {
  18. Token: '#cccccc',
  19. Whitespace: '#bbbbbb',
  20. Error: 'bg:#e3d2d2 #a61717',
  21. String: '#51cc99',
  22. Number: '#4FB8CC',
  23. Operator: '',
  24. Name.Function: '#6a6aff',
  25. Name.Other: '#e2828e',
  26. Keyword: 'bold #7686bb',
  27. Keyword.Constant: '',
  28. Comment: 'italic #777777',
  29. Name.Variable: 'bold #7AB4DB',
  30. Name.Variable.Global: 'bold #BE646C',
  31. Generic.Prompt: '#ffffff',
  32. }