stata_dark.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.stata_dark
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. Dark style inspired by Stata's do-file editor. Note this is not
  6. meant to be a complete style, just for Stata's file formats.
  7. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
  8. :license: BSD, see LICENSE for details.
  9. """
  10. from pygments.style import Style
  11. from pygments.token import Keyword, Name, Comment, String, Error, \
  12. Number, Operator, Whitespace, Generic, Text
  13. class StataDarkStyle(Style):
  14. default_style = ''
  15. background_color = "#232629"
  16. highlight_color = "#49483e"
  17. styles = {
  18. Whitespace: '#bbbbbb',
  19. Error: 'bg:#e3d2d2 #a61717',
  20. Text: '#cccccc',
  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. }