Sublime text3 将代码复制为RTF或HTML的方法

see:
http://monkeyhacks.com/post/sublime-text-3-copy-as-rtf-and-html-with-sublimehighlight
https://github.com/n1k0/SublimeHighlight

我们需要借助SublimeHighlight插件实现。

如何安装

首先打开包管理器:CTRL+SHIFT+P

输入add

Paste_Image.png

添加下面url:
https://github.com/n1k0/SublimeHighlight/tree/python3

然后再次按下CTRL+SHIFT+P,输入install

Paste_Image.png

查找SublimeHighlight按下回车安装即可。

如何使用

SublimeHighlight: convert to HTML:
will convert current code to highlighted HTML in a new SublimeText tab.

SublimeHighlight: convert to RTF:
will convert current code to highlighted RTF in a new SublimeText tab.

SublimeHighlight: view as HTML:
will convert current code to highlighted HTML and open it in your default browser.

SublimeHighlight: view as RTF:
will convert current code to an RTF document and open the generated file with your default program.

SublimeHighlight: copy to clipboard as HTML:
will convert current code to highlighted HTML and store it into the system clipboard.

SublimeHighlight: copy to clipboard as RTF:
will convert current code to raw highlighted RTF and store it into the system clipboard.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容