vs.py 1.0 KB

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