Export code to PDF with formatted docstring 关注
I found an option to print some python code, which can be used to export the code as PDF with syntax highlights to be easily readable. However, I'm looking for a way to keep the formatting of docstrings of my code (for example, make """**word**""" italicized in the pdf). Is it possible ? If not, is there any third-party tools that can be used to achieve this ?
排序方式 日期 投票数
Hi, if you're using "Print" function to save a PDF -- it's not possible. If you're using some third-party tool for PDF export, it's up to this tool to provide formatting.