简介和流程
最近换到sublime text3每次copy 代码或者相关文本的时候都只是plain text,并没有格式啊背景色等 也就是所谓的 rich text:富文本,简写RTF.
基本思路:
1.command + shift + P 打开 Package Control
2.输入add Repository
3.在下方输入https://github.com/n1k0/SublimeHighlight/tree/python3 导入模块,看提示加载成功后再继续,没成功就再加载
4.等文本栏再次弹出来后输入 SublimeHighlight,点击就算安装成功了
6.然后修改配置文件以及hotkeys
- 修改setting-user配置文件为(位置见后面截图)
其中theme你可以按照喜好修改:
点我显示可选theme外观展示
{
"theme": "fruity",
"noclasses": true,
"fontface": "Menlo",
}
- 修改key-binding(位置参见后面截图)
[
{ "keys": ["shift+command+c"],
"command": "sublime_highlight",
"args": { "target": "clipboard",
"output_type": "rtf"
}
},
]
流程如下:
1.加载sublimehightlight模块
![](https://img.haomeiwen.com/i1736543/f1872504cece06d7.png)
2.进口安装模块模式
![](https://img.haomeiwen.com/i1736543/49857776a62a9877.png)
3.输入sublimehighlight安装模块
![](https://img.haomeiwen.com/i1736543/7a6b57e8bc74d576.png)
4.修改user配置文件
![](https://img.haomeiwen.com/i1736543/76ff49d909371405.png)
![](https://img.haomeiwen.com/i1736543/334bc7d5a363c709.png)
5.修改快捷键为 shift + command + c
![](https://img.haomeiwen.com/i1736543/be5d14dcb18cc5db.png)
![](https://img.haomeiwen.com/i1736543/f328047b317063e8.png)
6.选择 copy as rtf
![](https://img.haomeiwen.com/i1736543/5b2f4c329329c380.png)
7. word下粘贴后的结果,在outlook以及其他地方都会显示有格式的文本
![](https://img.haomeiwen.com/i1736543/0e0db2c3b2c59480.png)
网友评论