stata_dark.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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-2023 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. class StataDarkStyle(Style):
  13. background_color = "#232629"
  14. highlight_color = "#49483e"
  15. styles = {
  16. Token: '#cccccc',
  17. Whitespace: '#bbbbbb',
  18. Error: 'bg:#e3d2d2 #a61717',
  19. String: '#51cc99',
  20. Number: '#4FB8CC',
  21. Operator: '',
  22. Name.Function: '#6a6aff',
  23. Name.Other: '#e2828e',
  24. Keyword: 'bold #7686bb',
  25. Keyword.Constant: '',
  26. Comment: 'italic #777777',
  27. Name.Variable: 'bold #7AB4DB',
  28. Name.Variable.Global: 'bold #BE646C',
  29. Generic.Prompt: '#ffffff',
  30. }