我使用Pygments了很多东西,我也想在乳胶报告中使用它.我找到了Minted与Pygments交互的包,但是一些注释和一些代码溢出了正确的边缘.我breaklines=true过去曾使用过lstlistings ,但是我没有看到使用Minted包获得该功能的方法,任何想法?
\documentclass[10pt]{article}
\usepackage{fancyvrb}
\usepackage{minted}
\begin{document}
\begin{minted}[mathescape,
linenos,
numbersep=5pt,
frame=single,
numbersep=5pt,
xleftmargin=0,
]{python}
class Run(BaseModel):
"""
Run: unique Tool and multiple Inputs
Status:
Running => jobs are pending or runing and not all jobs have been completed
Paused => workers querying for 'Running' Runs won't get this Run until we change status again
Done => all jobs have completed and have a result_status = 'Done'
Incomplete => No results (inputs) have been associated with …Run Code Online (Sandbox Code Playgroud) /r1
|- POST <-- accidentally deleted, want to restore
|- GET <-- new method, will remove the POST from the previous deploy
Run Code Online (Sandbox Code Playgroud)
我们的资源之一中的方法之一已被删除。该资源当然仍在最新的部署中,并且我们希望将其还原,以便可以将GET方法添加到同一资源中。
如果我们仅添加新的GET并进行部署,则POST将被删除。有没有办法保存和恢复API?