安装扩展依赖pip install lxml pymdown-extensions bs4 python-markdown-math markdown_checklist pygments生成样式文件pygmentize...install markdown pdfkit lxml pymdown-extensions bs4 python-markdown-math markdown_checklist pygments# pygmentize
目录中新建一个目录md_css/,用于放置代码高亮的样式文件 打开命令行:安装Pygments pip install Pygments 进入static/md_css目录中输入Pygments指令: pygmentize
打开cmd, cd到hello/static/hello/css目录,执行以下指令,会在当前目录生成一个code.css文件 pygmentize -S default -f html -a .codehilite
python3.7m easy_install-3.7 ipython3 pydoc3.7 python3.7m-config idle3 pip pygmentize...virtualenv easy_install-3.7 ipython3 pydoc3.7 python3.7m-config idle3 pip pygmentize
bin [root@centos6 bin]# ls 2to3 easy_install-3.6 idle3.6 iptest3 ipython3 pip3 pydoc3 pygmentize
pydoc3.7 python3.7 python3.7m-config pyvenv-3.7 easy_install-3.7 iptest ipython3 pip3.7 pygmentize
c.InteractiveShell.colors = 'Linux' c.TerminalInteractiveShell.autoformatter = 'yapf' # 配置高亮方案,可通过pygmentize
sphinxcontrib-htmlhelp, Pygments, pyparsing, packaging, babel, sphinx, sphinx-tabs WARNING: The script pygmentize
traitlets, pygments, prompt-toolkit, pickleshare, pexpect, jedi, backcall, IPython WARNING: The script pygmentize
领取专属 10元无门槛券
手把手带您无忧上云