stata_dark.py 1.2 KB

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