stata_light.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. """
  2. pygments.styles.stata_light
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. Light 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 Keyword, Name, Comment, String, Error, \
  11. Number, Operator, Whitespace, Text
  12. class StataLightStyle(Style):
  13. """
  14. Light mode style inspired by Stata's do-file editor. This is not
  15. meant to be a complete style, just for use with Stata.
  16. """
  17. styles = {
  18. Text: '#111111',
  19. Whitespace: '#bbbbbb',
  20. Error: 'bg:#e3d2d2 #a61717',
  21. String: '#7a2424',
  22. Number: '#2c2cff',
  23. Operator: '',
  24. Name.Function: '#2c2cff',
  25. Name.Other: '#be646c',
  26. Keyword: 'bold #353580',
  27. Keyword.Constant: '',
  28. Comment: 'italic #008800',
  29. Name.Variable: 'bold #35baba',
  30. Name.Variable.Global: 'bold #b5565e',
  31. }