diff options
Diffstat (limited to 'lib/spack/docs/_pygments/style.py')
-rw-r--r-- | lib/spack/docs/_pygments/style.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/spack/docs/_pygments/style.py b/lib/spack/docs/_pygments/style.py new file mode 100644 index 0000000000..0d7c386463 --- /dev/null +++ b/lib/spack/docs/_pygments/style.py @@ -0,0 +1,16 @@ +# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +# The name of the Pygments (syntax highlighting) style to use. +# We use our own extension of the default style with a few modifications +from pygments.styles.default import DefaultStyle +from pygments.token import Generic + + +class SpackStyle(DefaultStyle): + styles = DefaultStyle.styles.copy() + background_color = "#f4f4f8" + styles[Generic.Output] = "#355" + styles[Generic.Prompt] = "bold #346ec9" |