Skip to content
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

为什么format.py生成的html中的代码没有格式化? #12

Closed
DEAGS3000 opened this issue Oct 5, 2017 · 7 comments
Closed

为什么format.py生成的html中的代码没有格式化? #12

DEAGS3000 opened this issue Oct 5, 2017 · 7 comments

Comments

@DEAGS3000
Copy link
Contributor

调用script/format.py后成功在html目录生成了文件,但是其中的代码是没有格式化的,请问该如何解决?

@tkchu
Copy link
Owner

tkchu commented Oct 5, 2017

你需要安装一些format.py中提到的库
$ pip install markdown
$ pip install pygments
$ pip install smartypants

@DEAGS3000
Copy link
Contributor Author

这三个全都安装了,但是生成的HTML中的代码框只有一行,有个横向的滚动条

@tkchu
Copy link
Owner

tkchu commented Oct 5, 2017

pygments缺失会造成此项问题。
使用pip list指令显示当前的已安装包,以及当前的python版本,贴上来我看一下。

@DEAGS3000
Copy link
Contributor Author

现在好了,就是pygments的问题

@tkchu
Copy link
Owner

tkchu commented Oct 5, 2017

很好~

@tkchu tkchu closed this as completed Oct 5, 2017
@Faputa
Copy link

Faputa commented Dec 7, 2022

现在好了,就是pygments的问题

我遇到了一个同样的问题,能分享一下解决思路吗

@wumohai
Copy link

wumohai commented Dec 7, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants