the repository which powers this website
Diffstat (limited to 'filters/syntax-highlighting.py')
-rwxr-xr-xfilters/syntax-highlighting.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/filters/syntax-highlighting.py b/filters/syntax-highlighting.py
index a5fa367b..bf4164eb 100755
--- a/filters/syntax-highlighting.py
+++ b/filters/syntax-highlighting.py
@@ -95,7 +95,7 @@ class AyuMirageStyle(Style):
Comment.Single: "italic",
Comment.Preproc: Colors.syntax_keyword,
Comment.PreprocFile: Colors.syntax_string,
- Keyword: Colors.syntax_keyword,
+ Keyword: f"italic bold {Colors.syntax_keyword}",
Keyword.Type: Colors.syntax_entity,
Keyword.Constant: Colors.syntax_constant,
Keyword.Declaration: Colors.accent,
@@ -105,7 +105,7 @@ class AyuMirageStyle(Style):
Name.Class: Colors.syntax_tag,
Name.Constant: Colors.syntax_constant,
Name.Decorator: Colors.syntax_special,
- Name.Function: Colors.syntax_func,
+ Name.Function: f"italic {Colors.syntax_func}",
Name.Tag: Colors.syntax_tag,
Name.Variable.Instance: Colors.accent,
Name.Variable.Magic: f"italic {Colors.syntax_tag}",
@@ -149,15 +149,12 @@ except TypeError:
# highlight! :-)
# printout pygments' css definitions as well
sys.stdout.write('<style>')
-sys.stdout.write(formatter.get_style_defs('.highlight'))
+sys.stdout.write(formatter.get_style_defs('.highlight').replace("font-style: italic", 'font-family: "Cascadia Code NF Italic", "Cascadia Code", italic;').replace("125%", "102%"))
sys.stdout.write(
"""
.linenumbers {
color: #474c57
}
-.linenumbers:hover {
- color: #727982;
-}
.lines {
color: "#CCCAC2";
}