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 ?
1 条评论
排序方式
日期
投票数

评论操作
固定链接
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.
请先登录再写评论。