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

如何安装

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

输入add

bea2ea00e76d

Paste_Image.png

添加下面url:

https://github.com/n1k0/SublimeHighlight/tree/python3

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

bea2ea00e76d

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.

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐