vs.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. """
  2. pygments.styles.vs
  3. ~~~~~~~~~~~~~~~~~~
  4. Simple style with MS Visual Studio colors.
  5. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. from pygments.style import Style
  9. from pygments.token import Keyword, Name, Comment, String, Error, \
  10. Operator, Generic
  11. class VisualStudioStyle(Style):
  12. background_color = "#ffffff"
  13. styles = {
  14. Comment: "#008000",
  15. Comment.Preproc: "#0000ff",
  16. Keyword: "#0000ff",
  17. Operator.Word: "#0000ff",
  18. Keyword.Type: "#2b91af",
  19. Name.Class: "#2b91af",
  20. String: "#a31515",
  21. Generic.Heading: "bold",
  22. Generic.Subheading: "bold",
  23. Generic.Emph: "italic",
  24. Generic.Strong: "bold",
  25. Generic.Prompt: "bold",
  26. Error: "border:#FF0000"
  27. }