sanic/guide/webapp/display/code_style.py
2023-10-25 03:02:26 +01:00

21 lines
428 B
Python

from pygments.style import Style
from pygments.token import ( # Error,; Generic,; Number,; Operator,
Comment,
Keyword,
Name,
String,
Token,
)
class SanicCodeStyle(Style):
styles = {
Token: "#777",
Comment: "italic #a2a2a2",
Keyword: "#ff0d68",
Name: "#333",
Name.Class: "bold #37ae6f",
Name.Function: "#0092FF",
String: "bg:#eee #833FE3",
}