New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: hf社区主题可以使用本地代码高亮吗? #1695
Labels
Comments
@binary-husky
with open(os.path.join(theme_dir, "common.css"), "r", encoding="utf-8") as f:
advanced_css = f.read()
with open(os.path.join(theme_dir, "default_hf.css"), "r", encoding="utf-8") as f:
advanced_css += f.read() 但这只是简单粗暴的方法,如果能自动筛选本地和远程样式才完美,暂时没想到好办法。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Class | 类型
程序主体
Feature Request | 功能请求
现在好像只有已经本地化的主题支持代码高亮。
The text was updated successfully, but these errors were encountered: