vs.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.vs
  4. ~~~~~~~~~~~~~~~~~~
  5. Simple style with MS Visual Studio colors.
  6. :copyright: Copyright 2006-2019 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. Operator, Generic
  12. class VisualStudioStyle(Style):
  13. background_color = "#ffffff"
  14. default_style = ""
  15. styles = {
  16. Comment: "#008000",
  17. Comment.Preproc: "#0000ff",
  18. Keyword: "#0000ff",
  19. Operator.Word: "#0000ff",
  20. Keyword.Type: "#2b91af",
  21. Name.Class: "#2b91af",
  22. String: "#a31515",
  23. Generic.Heading: "bold",
  24. Generic.Subheading: "bold",
  25. Generic.Emph: "italic",
  26. Generic.Strong: "bold",
  27. Generic.Prompt: "bold",
  28. Error: "border:#FF0000"
  29. }