Sublime Text 2 Paste with Colors to MS Word

前端 未结 3 2024
野趣味
野趣味 2021-01-30 00:35

I would like to paste my code to a word document while preserving the highlighted, colored texts. Is there a way to do this?

3条回答
  •  鱼传尺愫
    2021-01-30 01:31

    You can install highlight plugin and then use SublimeHighlight: copy to clipboard as RTF command from the command palette.

    enter image description here

    If you want to use your own color scheme use ExportHTML plugin to export to html and copy and paste the html in MS Word. HTMLExport can be configured to use any of your installed color schemes. just read the docs and look at the default settings.

    Use a browser like Safari that can copy in RTF to the clipboard. For me chrome does not work.

提交回复
热议问题