How can I copy from an html file to the clipboard in Python in formatted text?

后端 未结 3 1186
醉酒成梦
醉酒成梦 2020-12-11 19:10

I\'m writting a Word document and I\'d like to paste a formatted code-snippets directly from clipboard.

At this moment I am able to write these snippets into an .htm

3条回答
  •  情歌与酒
    2020-12-11 19:27

    I used com interface to do it. http://en.wikipedia.org/wiki/Component_Object_Model

    The simpliest way: - create word template in microsoft word. - paste text from code in your template.

提交回复
热议问题